[Dovecot] dovecot-ldap and ldap_result() failed.

Tan Shao Yi tansy at pacific.net.sg
Mon Apr 30 04:10:32 EEST 2007


Hi,

I have configured dovecot for auth_bind against an LDAP server on the 
localhost and I'm seeing the following error in my dovecot logs:

dovecot: Apr 30 09:03:18 Error: auth(default): LDAP: ldap_result() failed: 
Can't contact LDAP server
dovecot: Apr 30 09:03:27 Error: auth(default): LDAP: ldap_result() failed: 
Can't contact LDAP server
... and so on ...

When I turned on LDAP logging, this was what slapd logged.

Apr 30 09:05:00 recess3 slapd[14387]: [ID 848112 local4.debug] conn=3555 
fd=11 ACCEPT from IP=127.0.0.1:47299 (IP=0.0.0.0:389)
Apr 30 09:05:00 recess3 slapd[14387]: [ID 215403 local4.debug] conn=3555 
op=0 BIND dn="cn=root,o=home" method=128
Apr 30 09:05:00 recess3 slapd[14387]: [ID 600343 local4.debug] conn=3555 
op=0 BIND dn="cn=root,o=home" mech=SIMPLE ssf=0
Apr 30 09:05:00 recess3 slapd[14387]: [ID 588225 local4.debug] conn=3555 
op=0 RESULT tag=97 err=0 text=

May I know what is causing Dovecot to log that it Can't contact the LDAP 
server when slapd does see the incoming connection.

Strangely, everything is working fine, my users are able to authenticate 
against LDAP; the UIDs, home directories, quotas etc are all picked up 
correctly. It's just the annoying auth(default) errors that keep popping 
up every 20 seconds or so.

Thanking in advance if anyone has any ideas.

Cheers.


More information about the dovecot mailing list