Univention Bugzilla – Bug 47706
listener/system/umc-service-providers.py restarts slapd in postrun on every change of univentionService
Last modified: 2021-02-18 07:35:39 CET
if 'Univention Management Console' in new.get('univentionService', []): handler_set(['umc/saml/trusted/sp/%s=%s' % (fqdn, fqdn)]) __changed_trusted_sp = True __changed_trusted_sp = True -> slapd restart So every time univentionService is changed, the slapd is restarted. This is not necessary and potential dangerous. I installed an App, this failed because the app add a univentionService and wanted to do something with ldap in the join script. This failed because the slapd has been restarted. I think we should only changed the ucr settings and restart slapd if the 'Univention Management Console' service has been added or removed.
and change ud.debug(ud.LISTENER, ud.INFO, '%s: Reloading LDAP server.' % (name,)) to ud.debug(ud.LISTENER, ud.PROCESS, '%s: Reloading LDAP server.' % (name,)) so that we can see who is restarting the slapd (with the default loglevel)
Good! Patch available in fbest/47706-decrease-slapd-restart.
Patch applied in: univention-management-console.yaml 596327edb2c9 | Bug #47706: do not restart slapd on every service change univention-management-console (11.0.4-38) 596327edb2c9 | Bug #47706: do not restart slapd on every service change
OK - univention-management-console OK - yaml
<http://errata.software-univention.de/ucs/4.4/310.html>