Univention Bugzilla – Bug 30064
univention-directory-policy is called too late
Last modified: 2013-03-26 09:14:28 CET
univention-directory-policy is called in /etc/rc2.d/ (init.d). This is too late. I have an ucr policy lightdm/sessiondefault=RDP. After booting the thin client lightdm's default session is still lxde. But the local ucr variable lightdm/sessiondefault is set to RDP. So i assume that u-d-p is called to late. We should remove univention-directory-policy from /etc/rcX.d and add "run-parts /usr/lib/univention-directory-policy >>/var/log/univention/ldap-policy.log 2>&1" to /usr/sbin/univention-ucc-fetch-system-policies (which is called in the upstart script /etc/init/ucc-syspol.conf).
univention-ucc-fetch-system-policies (called in upstart job ucc-syspol) now executes "run-parts /usr/lib/univention-directory-policy". The init script univention-directory-policy has been removed from the package univention-directory-policy (via patch).
univention-ucc-fetch-system-policies is called in ucc-syspol -> OK univention-ucc-fetch-system-policies executes run-parts /usr/lib/univention-directory-policy -> OK Patch that removes univention-directory-policy -> OK -> Verified
UCC 1.0 has been released: http://forum.univention.de/viewtopic.php?f=26&t=2417 http://forum.univention.de/viewtopic.php?f=54&t=2418 If this error occurs again, please use "Clone This Bug".