[python-ldap] [BUG, PATCH] Recursive locking problem when using TLS with reconnect

Philipp Hahn hahn at univention.de
Tue Sep 9 11:26:19 CEST 2014


Hello,

On 08.09.2014 21:49, Michael Ströder wrote:
> Sorry, overlooked the real issue.
> 
> Committed fix to CVS. Please test and confirm.

<http://python-ldap.cvs.sourceforge.net/viewvc/python-ldap/python-ldap/Lib/ldap/ldapobject.py?annotate=1.140#l829>
looks wrong:

"self" is now missing as the first and only parameter:

--- python-ldap/Lib/ldap/ldapobject.py	2014/07/25 17:08:56
+++ python-ldap/Lib/ldap/ldapobject.py	2014/09/08 19:48:11
@@ -826,7 +826,7 @@
           self._restore_options()
           # StartTLS extended operation in case this was called before
           if self._start_tls:
-            SimpleLDAPObject.start_tls_s()
+            SimpleLDAPObject.start_tls_s(self)
           # Repeat last simple or SASL bind
           self._apply_last_bind()
         except (ldap.SERVER_DOWN,ldap.TIMEOUT),e:

Sincerely
Philipp


More information about the python-ldap mailing list