Denny Schierz
2010-Sep-29 14:09 UTC
[Dovecot] 1.2.14 --- auth(default) Error: LDAP: Connection lost to LDAP server, reconnecting
hi, I see in dovecots logfile some error messages: Sep 29 15:33:43 auth(default): Error: LDAP: Connection lost to LDAP server, reconnecting Sep 29 15:34:15 auth(default): Error: LDAP: Connection lost to LDAP server, reconnecting Sep 29 15:34:50 auth(default): Error: LDAP: Connection lost to LDAP server, reconnecting Sep 29 15:35:22 auth(default): Error: LDAP: Connection lost to LDAP server, reconnecting Sep 29 15:36:01 auth(default): Error: LDAP: Connection lost to LDAP server, reconnecting Sep 29 15:36:37 auth(default): Error: LDAP: Connection lost to LDAP server, reconnecting Sep 29 15:37:16 auth(default): Error: LDAP: Connection lost to LDAP server, reconnecting Sep 29 15:37:52 auth(default): Error: LDAP: Connection lost to LDAP server, reconnecting Sep 29 15:38:24 auth(default): Error: LDAP: Connection lost to LDAP server, reconnecting I don't know, what could be the problem. I upgraded Dovecot from 1.2.13 to 1.2.14 to solving the problem, but ... no success. Our LDAP Server is 2.4.23 and works for our network without any problems. If I try to use ldapsearch from the Dovecot host, while I see the messages, ldapsearch works withouch any timeout. I enabled caching for auth too, but the problem still exists. My DoveCot Config: http://pastebin.com/W7zHf4fT the LDAP part: hosts = ldap ldap2 auth_bind = yes ldap_version = 3 base = cn=accounts, dc=foo user_attrs = postalAddress=domain, homeDirectory=/imap/spool/%d/%1n/%n, myMailQuota=quota_rule=*:storage=%$M user_filter = (&(objectClass=posixAccount)(uid=%n)) pass_attrs = postalAddress=domain, uid=user, userPassword=password pass_filter = (&(objectClass=posixAccount)(uid=%n)) default_pass_scheme = MD5 any suggestions? cu denny ps. when does dovecot switches to ldap2? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Dies ist ein digital signierter Nachrichtenteil URL: <http://dovecot.org/pipermail/dovecot/attachments/20100929/d7ae4974/attachment-0002.bin>
Denny Schierz
2010-Sep-29 14:26 UTC
[Dovecot] 1.2.14 --- auth(default) Error: LDAP: Connection lost to LDAP server, reconnecting
hi, I enabled a bit more logging and it seems, that "auth" try to connect without anything: # grep conn=1103 local4.log http://pastebin.com/a1h1YE8P cu denny -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Dies ist ein digital signierter Nachrichtenteil URL: <http://dovecot.org/pipermail/dovecot/attachments/20100929/5698fa02/attachment-0002.bin>
Charles Marcus
2010-Sep-29 16:24 UTC
[Dovecot] 1.2.14 --- auth(default) Error: LDAP: Connection lost to LDAP server, reconnecting
On 2010-09-29 10:09 AM, Denny Schierz wrote:> My DoveCot Config: > > http://pastebin.com/W7zHf4fTPlease don't do this (it makes it harder to help you) - just paste the output in the email body... -- Best regards, Charles
Charles Marcus
2010-Sep-29 16:25 UTC
[Dovecot] 1.2.14 --- auth(default) Error: LDAP: Connection lost to LDAP server, reconnecting
On 2010-09-29 10:26 AM, Denny Schierz wrote:> # grep conn=1103 local4.log > > http://pastebin.com/a1h1YE8PSame for this... -- Best regards, Charles
Timo Sirainen
2010-Sep-29 17:45 UTC
[Dovecot] 1.2.14 --- auth(default) Error: LDAP: Connection lost to LDAP server, reconnecting
On Wed, 2010-09-29 at 16:09 +0200, Denny Schierz wrote:> Sep 29 15:33:43 auth(default): Error: LDAP: Connection lost to LDAP > server, reconnecting > Sep 29 15:34:15 auth(default): Error: LDAP: Connection lost to LDAP > server, reconnectingYou've configured LDAP server to have a really small connection idle timeout?> hosts = ldap ldap2 > > ps. when does dovecot switches to ldap2?Dovecot doesn't switch. OpenLDAP library switches. I don't know what its internal log is. My guess is it first always connects to ldap, and if that fails then it connects to ldap2 (and never switches back, until connection is lost).