On Fri, Dec 17, 2004 at 08:04:29AM -0500, Adam Tauno Williams wrote:
I have a server running SuSe 9.2 Professional and dhcp-server-3.0.1-3. We are using the LDAP connectivity to store our configuration in an OpenLDAP DSA, so our dhcpd.conf looks like -
ddns-update-style ad-hoc; ldap-server "localhost"; ldap-port 389; #ldap-username "uid=DHCPDaemon,ou=System Accounts,o=Morrison Industries,c=US"; #ldap-password "***************" ldap-base-dn "ou=ISCdhcpDaemon,ou=SubSystems,o=Morrison Industries,c=US"; ldap-method dynamic;
This service works, but several times a day simply dies with a -
Dec 16 18:33:07 littleboy dhcpd: Cannot search for (&(objectClass=dhcpHost)(dhcpHWAddress=ethernet 00:01:e6:90:31:65)) in LDAP tree cn=morrison-primary,ou=Configs,ou=ISCdhcpDaemon,ou=SubSystems,o=Morrison Industries,c=US: Can't contact LDAP server
- left in /var/log/messages.
Restarting the service works.
This DSA is also used by Bind, NSS, Samba PDC, and a variety of other services all of which have no problem maintaing or establishing communication.
We've used the LDAP patch for dhcpd for a long time, but just moved this server from RedHat 9 to SuSe 9.2, which is when this problem began to manifest.
Which (version of the) LDAP patch were you using last time it worked? BTW, I updated ftp://ftp.suse.com/pub/people/poeml/dhcp/9.2-i386 lately, you will find packages containing the latest patch there. It would be good to know if that one works better. For further analysis, I recommend to attach strace -tt /root/dhcpd.strace $(pidof dhcpd) to the running server. Peter