Client Configuration: PAM

# Your LDAP server.

# The distinguished name of the search base.
base dc=example,dc=net

# Use the V3 protocol to optimize searches
ldap_version 2

# Filter to AND with uid=%s
#pam_filter objectclass=account

# The user ID attribute (defaults to uid)
#pam_login_attribute uid

pam_crypt local
/etc/pam.d/ssh - need similar for every app you want to use ldap
auth       sufficient   /lib/security/
auth       required     /lib/security/ shadow nullok try_first_pass
auth       required     /lib/security/
account    sufficient   /lib/security/
account    required     /lib/security/
password   required     /lib/security/
password   sufficient   /lib/security/
password   required     /lib/security/ shadow nullok use_authtok
session    sufficient   /lib/security/
session    required     /lib/security/