Univention Bugzilla – Bug 40883
python-ldap reconnection class raises AttributeError
Last modified: 2019-02-06 11:19:43 CET
Version: 4.1-0 errata122 (Vahr) Remark: direkt nach Serverneustart (auf DC-Backup) in der UMC beim Aufruf der Benutzerübersicht... Die Ausführung des Kommandos udm/syntax/choices/info users/user ist fehlgeschlagen: Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 283, in execute function(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 318, in _response result = _multi_response(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 462, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 284, in _fake_func yield function(self, *args) File "%PY2.7%/univention/management/console/modules/udm/__init__.py", line 904, in syntax_choices_info return info_syntax_choices(syntax) File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 1165, in info_syntax_choices module = UDM_Module(udm_module) File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 241, in __init__ self.load(force_reload=force_reload) File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 254, in load self.module = _module_cache.get(module, force_reload=force_reload) File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 84, in _decorated return method(*args, **kwargs) File "%PY2.7%/univention/management/console/ldap.py", line 135, in _decorated result = func(*args, **kwargs) File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 224, in get udm_modules.init(ldap_connection, ldap_position, self[name], template_object, force_reload=force_reload) File "%PY2.7%/univention/admin/modules.py", line 124, in init for dn, attrs in lo.search(base=position.getDomainConfigBase(), filter='(&(objectClass=univentionAdminProperty)(univentionAdminPropertyModule=%s))' % name(module)): File "%PY2.7%/univention/admin/uldap.py", line 349, in search return self.lo.search(filter, base, scope, attr, unique, required, timeout, sizelimit) File "%PY2.7%/univention/uldap.py", line 331, in search timeout=timeout, sizelimit=sizelimit) File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 918, in search_ext_s return self._apply_method_s(SimpleLDAPObject.search_ext_s,*args,**kwargs) File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 865, in _apply_method_s self.reconnect(self._uri,retry_max=self._retry_max,retry_delay=self._retry_delay) File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 843, in reconnect SimpleLDAPObject.unbind_s(self) File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 600, in unbind_s return self.unbind_ext_s(None,None) File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 591, in unbind_ext_s msgid = self.unbind_ext(serverctrls,clientctrls) File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 588, in unbind_ext return self._ldap_call(self._l.unbind_ext,RequestControlTuples(serverctrls),RequestControlTuples(clientctrls)) File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 136, in __getattr__ self.__class__.__name__,repr(name) AttributeError: ReconnectLDAPObject has no attribute '_l'
Previously to Bug #40883 this caused a segfault. Now we receive at least this traceback.
This issue has been filled against UCS 4.1. The maintenance with bug and security fixes for UCS 4.1 has ended on 5st of April 2018. Customers still on UCS 4.1 are encouraged to update to UCS 4.3. Please contact your partner or Univention for any questions. If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.
*** This bug has been marked as a duplicate of bug 43274 ***