I've install LDAP with PAM/NSS. So I've installed libnss-ldap libpam-ldap nscd on my Debian 9
apt-get install libnss-ldap libpam-ldap nscd
I configured it and all was working rigth. I decided to disable anonymous access. I used this ldif:
dn: cn=config
changetype: modify
add: olcDisallows
olcDisallows: bind_anon
Now i can't access to the users in the LDAP. Logs:
su iron
cat /var/log/auth.log
May 7 06:39:52 DebianMM nscd: nss_ldap: failed to bind to LDAP server ldap://my-server.local: Inappropriate authentication
May 7 06:39:52 DebianMM nscd: nss_ldap: reconnecting to LDAP server...
May 7 06:39:52 DebianMM nscd: nss_ldap: failed to bind to LDAP server ldap://my-server.local: Inappropriate authentication
May 7 06:39:52 DebianMM nscd: nss_ldap: reconnecting to LDAP server (sleeping 1 seconds)...
May 7 06:39:53 DebianMM nscd: nss_ldap: failed to bind to LDAP server ldap://my-server.local: Inappropriate authentication
May 7 06:39:53 DebianMM nscd: nss_ldap: could not search LDAP server - Server is unavailable
May 7 06:39:53 DebianMM su[702]: No passwd entry for user 'iron'
May 7 06:39:53 DebianMM su[702]: FAILED su for iron by root
May 7 06:39:53 DebianMM su[702]: - /dev/pts/0 root:iron
This is my /etc/ldap/ldap.conf:
#
# LDAP Defaults
#
# See ldap.conf(5) for details
# This file should be world readable but not world writable.
BASE dc=my-server,dc=local
URI ldap://my-server.local:389
#SIZELIMIT 12
#TIMELIMIT 15
#DEREF never
# TLS certificates (needed for GnuTLS)
TLS_CACERT /etc/ssl/certs/ca-certificates.crt
binddn cn=admin,dc=my-server,dc=local
bindpw password_clear
I need the login work again Thank you