Score:0

How to setup pam on debian 11

hk flag

I have installed debian 11 and pam-ldapd. Now, I want to setup authenticating for openvpn with pam. When I wanted to test it with 'getent passwd' command, I got only local users response.

Can you help me please, how to setup it?

My nsswitch is here:

passwd:         files systemd ldap
group:          files systemd
shadow:         files
gshadow:        files

hosts:          files dns myhostname
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis

nslcd.conf here


uid nslcd
gid ldap
uri ldap://10.1.4.113/
base dc=example,dc=eu
#binddn cn=vpnbind,ou=MyUsers,dc=test,dc=net
#binddn [email protected]
binddn cn=admin,dc=example,dc=eu
bindpw secret
scope sub

base   group  dc=example,dc=eu
base   passwd dc=example,dc=eu
base   shadow dc=example,dc=eu

bind_timelimit 30
timelimit 30

filter passwd (&(objectClass=user)(memberOf=dc=example,dc=eu))
map    passwd uid              sAMAccountName

filter shadow (&(objectClass=user)(memberOf=example,dc=eu))
map    shadow uid              sAMAccountName


tls_reqcert never

Thanks for any answer

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.