Univention Bugzilla – Bug 32861
Adapt LDAP_Connection to not reconnect to LDAP server
Last modified: 2014-03-06 13:52:54 CET
The UDM UMC module has a Python function decorator that initially establishes an LDAP connection and intercepts LDAP errors in case the connection runs in a timeout. As through this decorator Python tracebacks may be obfuscated and as it would not make sense to implement the same functionality twice, we should be able to simplify the decorator thanks to Bug 32617. +++ This bug was initially created as a clone of Bug #32617 +++ We should switch to ReconnectLDAPObject which does automatic reconnects. This should be done in uldap.py. The directory manager modules code should be checked as well. http://www.python-ldap.org/doc/html/ldap.html#ldapobject-classes
Hm… in tests that I made with ReconnectLDAPObject, it still would throw a SERVER_DOWN exception. Therefore, the LDAP_Connection wrapper should probably be left as it is.
(In reply to Alexander Kläser from comment #1) > Hm… in tests that I made with ReconnectLDAPObject, it still would throw a > SERVER_DOWN exception. Therefore, the LDAP_Connection wrapper should > probably be left as it is. SERVER_DOWN means server down. The connection is tried again on the next request if the first connection failed.