понеделник, 15 февруари 2016 г.

Ldap auth with Debian


apt-get install libpam-ldap libnss-ldap

# egrep -v '^(#|$)' /etc/libnss-ldap.conf
base dc=domain,dc=net
uri ldap://servername
ldap_version 3

# egrep -v '^(#|$)' /etc/pam_ldap.conf
base dc=domain,dc=net
uri ldap://servername
ldap_version 3
pam_password crypt

# grep ldap /etc/nsswitch.conf 
passwd:         compat ldap
group:          compat ldap
shadow:         compat ldap


#getent shadow
#getent group
#getent passwd

Няма коментари:

Публикуване на коментар