Bug 30064 - univention-directory-policy is called too late
univention-directory-policy is called too late
Status: CLOSED FIXED
Product: Z_Univention Corporate Client (UCC)
Classification: Unclassified
Component: Client management
unspecified
Other Linux
: P5 normal
: UCC 1.0
Assigned To: Felix Botner
Erik Damrose
: interim-4
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-18 11:49 CET by Felix Botner
Modified: 2013-03-26 09:14 CET (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2013-01-18 11:49:34 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).
Comment 1 Felix Botner univentionstaff 2013-01-22 13:06:03 CET
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).
Comment 2 Erik Damrose univentionstaff 2013-01-29 15:35:11 CET
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
Comment 3 Moritz Muehlenhoff univentionstaff 2013-03-26 09:14:28 CET
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".