Univention Bugzilla – Attachment 10021 Details for
Bug 46089
computerroom/room/acquire: ldapError: Insufficient access
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Possible patch for python-ldap
patch (text/plain), 1.11 KB, created by
Jürn Brodersen
on 2019-05-10 13:14:57 CEST
(
hide
)
Description:
Possible patch for python-ldap
Filename:
MIME Type:
Creator:
Jürn Brodersen
Created:
2019-05-10 13:14:57 CEST
Size:
1.11 KB
patch
obsolete
>diff --git a/Lib/ldap/ldapobject.py b/Lib/ldap/ldapobject.py >index 8fa71c3..e55d795 100644 >--- a/Lib/ldap/ldapobject.py >+++ b/Lib/ldap/ldapobject.py >@@ -1167,6 +1167,11 @@ class ReconnectLDAPObject(SimpleLDAPObject): > SimpleLDAPObject.start_tls_s(self) > # Repeat last simple or SASL bind > self._apply_last_bind() >+ except LDAPError as exc: >+ # Ensure self._l is not in a not fully initialized state >+ SimpleLDAPObject.unbind_s(self) >+ try: >+ raise exc > except (ldap.SERVER_DOWN,ldap.TIMEOUT): > if __debug__ and self._trace_level>=1: > self._trace_file.write('*** %s reconnect to %s failed\n' % ( >@@ -1178,7 +1183,6 @@ class ReconnectLDAPObject(SimpleLDAPObject): > if __debug__ and self._trace_level>=1: > self._trace_file.write('=> delay %s...\n' % (retry_delay)) > time.sleep(retry_delay) >- SimpleLDAPObject.unbind_s(self) > else: > if __debug__ and self._trace_level>=1: > self._trace_file.write('*** %s reconnect to %s successful => repeat last operation\n' % (
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 46089
:
9946
|
9969
| 10021