1

I've Debian 7.11 as client of my LDAP. This morning after an update I 've got the surprise my debian doesn't want to connect to my LDAP anymore. It's seems the nslcd took the hand on nscd.

Anyway is it possible to restore back the old nss system ?

For taking front of the problem I tried to configuring my nslcd.conf like this :

uid nslcd
gid nslcd

uri ldap://server.acme.com
base dc=acme,dc=org
binddn cn=proxyuser,ou=pam,dc=acme,dc=org
bindpw clearpasswd

base    passwd  ou=People,dc=acme,dc=org
base    shadow  ou=People,dc=acme,dc=org
base    group   ou=Group,dc=acme,dc=org

pam_authz_search        (&(objectClass=posixAccount)(uid=$username))

I've got the user and group checked with the command gentent passwd but not the shadow as the su user doesn't work :

su - user1
No passwd entry for user 'user1'

I'm thinking the nsswitch.conf is configured well :

passwd:         files ldap
group:          files ldap
shadow:         files ldap
1

I found a solution that work for me : I reconfigured the impacted package

# dpkg-reconfigure libnss-ldapd
# dpkg-reconfigure libpam-ldapd
# dpkg-reconfigure nslcd

That pops up this windows in my terminal the first step is to configure the /etc/nsswitch.conf :

enter image description here

Second give the URI of the LDAP server :

enter image description here

Third step give the distinguished name of the base :

enter image description here

Fourth step give the type of authentication for the LDAP Base:

enter image description here

Fifth step give the account for the authentication :

enter image description here

Sixth step give the password of the account :

enter image description here

Seventh give the encryption type :

enter image description here

After that the getent password show me all the login which are inside the LDAP Base

PS : Sorry for the french snaptshot

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.