LDAP question
Had a power outage, so LDAP did not shut down properly, BDB database got wedged so I had to restore it :-(, really wish I had not used BDB as my backend, but thats another story. Anyhow, got my LDAP server backup and I can run ldapsearches from the command line no problem, but when I try to login as a user that only exists in the LDAP server I am getting the following errors in my "messages" log file:
Feb 9 19:39:43 server01 ntpdate[3093]: nss_ldap: failed to bind to LDAP server ldap://server01.bluemapletech.com: Can't contact LDAP server Feb 9 19:39:43 server01 ntpdate[3093]: nss_ldap: could not search LDAP server - Server is unavailable Feb 9 19:39:43 server01 ntpdate[3093]: nss_ldap: failed to bind to LDAP server ldap://server01.bluemapletech.com: Can't contact LDAP server Feb 9 19:39:43 server01 ntpdate[3093]: nss_ldap: could not search LDAP server - Server is unavailable Also, Samba does not seem to be having a problem accessing LDAP. Why is nss_ldap failing? Can someone help me? |
It sounds like nss_ldap is referencing the server by a different id than everything else (i.e. a DNS name instead of localhost or 127.0.0.1).
|
Ok, thank you. I changed ldap.config to say host localhost rather than host server01.bluemapletech.com, so now it works, but I am curious why host server01.bluemapletech.com does not work anymore. My hosts file says:
127.0.0.1 localhsot server01.bluemapletech.com server01 Therefore, any of the above should point to the loopback address. Any ideas? |
Actually, I think its fine now, no idea. Anyhow, thanks.
|
All times are GMT -5. The time now is 06:22 PM. |