PAM (Pluggable Authentication Modules) permet un mode d'authentification modulaire facilement paramétrable. Il existe donc un module PAM pour LDAP, soit :
apt-get install libpam-ldap
Ensuite paramétrons ce module : /etc/pam_ldap.conf
host localhost base ou=People,dc=exemple ldap_version 2 pam_crypt local