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

389-ds under Debian Jessie


# apt-get install 389-admin-console 389-ds-console 389-ds-base --no-install-recommends
...

# cat /etc/ld.so.conf.d/x86_64-linux-gnu_nss.conf
/usr/lib/x86_64-linux-gnu/nss

#ldconfig

# setup-ds-admin

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