[CentOS] Look for users in both LDAP and /etc/passwd

Tronn Wærdahl tronnw at gmail.com
Tue Oct 9 14:14:45 UTC 2007

Im running CentOS 5 with samba configured as PDC, with samba 3.0.24 and
My /etc/nsswitch.conf is like this:

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

The problem is when I try to restart LDAP (/etc/init.d/ldap restart) then
the init script just hangs. I suppose it will try to run slapd as the ldap
The ldap user is not in LDAP only in /etc/passwd, how can i configure my
system to look for users first in LDAP and then in /etc/passwd

When I remove LDAP from my /etc/nsswitch.conf, so it looks like below

passwd:     files
shadow:     files
group:        files

then ldap start up nicely, but then my LDAP users can't sign in

I tried to do different changes in pam, but without any progress

Please advice
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.centos.org/pipermail/centos/attachments/20071009/67d13165/attachment.htm

More information about the CentOS mailing list