ReconnectLDAPObject doesn't reconnect after main failure

"Michael Ströder" michael at
Sat Jan 27 21:52:29 CET 2007

On 12:59:58 pm 2007-01-27 "Alain Spineux" <aspineux at> wrote:
> And what about the idea to put the
> try:
> except ldap.SERVER_DOWN,e:
>    SimpleLDAPObject.unbind_s(self)
> in the function _ldap_call too ?
> This will correct also SimpleLDAPObject ?

There is nothing wrong with SimpleLDAPObject. The application is supposed
to catch and handle ldap.SERVER_DOWN. Additionally SimpleLDAPObject and
ReconnectLDAPObject shall behave in the same way. And IMO they do now.

Ciao, Michael.

More information about the python-ldap mailing list