I have configured a machine to authenticate against LDAP. When I log onto the box using the newly created user I see a LDAP search request for every user that exist in the directory. If I have only 20 users even a 100 that is not a problem but when I start going to 10000 users I start getting some weird errors and timeouts because of the time it takes to download the data to the client.
I have tested this against 389 Directory Server and OpenLDAP and both give the same behaviour described above.
I have tried adding a nss_base directives in /etc/ldap.conf but it has had no effect.
I have also played around with various debug levels in /etc/ldap.conf but I have not really been succesfull in matching requests I see there to requests I see in wireshark. The man page in centos (man pam_ldap and nss_ldap ) also does not make any mention of available log levels or what they do. I have also scanned the source code for some more info on log levels but did not find anything usefull. If it is in the source code then please point me to it.
I have gone through the pam list logs and the closest I could find was the following thread:
https://www.redhat.com/archives/pam-list/2009-September/thread.html and a similar thread in December 2010. This threads although similar is related to groups and my problem is with every user being queried.
I am fairly certain (hopeful at least) that is a config error on my part but I have not been able to find that error yet and would welcome any assistance in finding the problem.
Using CentOS release 5.4 on the client and 5.5 on the server but I see the same result if the server is on 5.4.
In order to protect our email recipients, Betfair Group use SkyScan from
MessageLabs to scan all Incoming and Outgoing mail for viruses.
CentOS mailing list