Univention Bugzilla – Bug 51000
Revert of "pass ldap connection to udm hooks" failed
Last modified: 2021-06-24 13:27:35 CEST
I just noticed that univention/admin/modules.py still contains the code register_ldap_connection = getattr(propertyHook, 'hook_ldap_connection', None) if register_ldap_connection: register_ldap_connection(lo, position) that should have been reverted in bug 44203. We should remove this code and mentioned in the original bug. +++ This bug was initially created as a clone of Bug #44203 +++ When a UDM hook is called (creation for example here: univention/admin/modules.py:297) the existing UDM-LDAP connection is not passed to it. If it needs LDAP/UDM acces, it must then get those credentials itself - often involving Administator or root access. Change univention.admin.hook.simpleHook in a way, that the current UDM-LDAP connection is usable in classes inheriting from it. As univention.admin.hook.simpleHook currently has no __init__(), the API change can probably be done backwards compatible there. All existing hooks have to be checked first.
Code does not exists anymore.