[Dovecot] 1.0.rc13 released
skdovecot at smail.inf.fh-bonn-rhein-sieg.de
Mon Nov 13 09:11:52 UTC 2006
-----BEGIN PGP SIGNED MESSAGE-----
On Mon, 13 Nov 2006, Gábor Lénárt wrote:
> Nov 13 08:24:14 sn0 dovecot: auth(default): ldap(user,127.0.0.1): bind search: base=dc=example,dc=com filter=(&(objectclass=mailuser)(inetuserstatus=active)(mail=user))
> Nov 13 08:24:14 sn0 slapd: connection_input: conn=303725 deferring operation: pending operations
> The trick - as you have also guessed - that it reconnects each time. So for me it would be also good, that dovecot
> would be able to reconnect each time ...
We have lots of trouble with OpenLDAP under heavy load. After
trial-and-error I do now:
+ unbind() when I do not intend to use the LDAP connection in the script
anymore, e.g. after authentification is done and the data has been read
(LDAP retrieval done),
+ re- bind() when I start a new LDAP retrieval (most often, an anonymous
bind in order to find the user logging in),
+ when bind() or the first the search fails with "pending blah blah" or
"unwilling to perform", I drop the LDAP connection and reconnect, then
bind() and, eventually, search again.
None of this is necessary by the API as I understand it, but now the
scripts almost never fail for LDAP errors.
To reconnect to the LDAP server each time is an huge performace killer in
my envrionment. I would have expected in any environment?!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
-----END PGP SIGNATURE-----
More information about the dovecot