Univention Bugzilla – Bug 56453
ucs_registerLDAPextension: ldap_extension.py listener sometimes fails to activate acl/schema extensions
Last modified: 2023-08-18 18:43:00 CEST
Bug #55337 has the details. The proposal is to adjust the ldap_extension.py listener to move the activation from the postrun into the handler function. This may sound irritating, but if you run ucs_registerLDAPextension 5 times fro ma joinscript, then it will wait each time for the postrun and the slapd will get restarted 5 times anyway. Also there's the question how to make this more reliable: currently the listener postrun code will not activate the extension if (for some reason) slapd in not running (it simply cannot, because it needs write access to the LDAP. Maybe some retry logic or persist+retry via a local file (pickle, sqlite, lmdb, whatever) could make this more robust.