Univention Bugzilla – Bug 33897
Configurable names for well known role accounts
Last modified: 2014-04-10 14:03:06 CEST
We need a listener module to set users/default/$UCS_USER_NAME=$CUSTOM_USER_NAME when one of the Well Known Samba role accounts is renamed (like "Administrator"). This has been done already by Felix for the groups/default/... maybe we can simply extend that listener. +++ This bug was initially created as a clone of Bug #33889 +++
The group-name-mapping.py listener has been extended and renamed to well-known-sid-name-mapping.py. Advisory: 2013-12-09-univention-pam.yaml This bug will be set to resolved/fixed after testing Bug 33644.
The well-known-sid-name-mapping listener now calls run-parts on the directory /usr/lib/univention-pam/well-known-sid-name-mapping.d in the postrun function in case a UCR mapping was modified. This allows a slapd restart as well as other service specific operations if required.
(In reply to Arvid Requate from comment #2) > The well-known-sid-name-mapping listener now calls run-parts on the directory > > /usr/lib/univention-pam/well-known-sid-name-mapping.d > > in the postrun function in case a UCR mapping was modified. This allows a > slapd restart as well as other service specific operations if required. That means we will restart the LDAP server every time we change one well known object. Wouldn't it be better to restart the LDAP server only if Administrator, Domain Admins or Windows Hosts were changed?
> That means we will restart the LDAP server every time we change one well known > object. Wouldn't it be better to restart the LDAP server only if Administrator, > Domain Admins or Windows Hosts were changed? Since it's called in the postrun the restart will be called rarely when a batch of Well known SID objects are renamed in OpenLDAP. But you are right, it would be nicer, if the well-known-sid-name-mapping.d/* hooks could generally choose their reaction based on the specific changes. This would need an adjustment of Bug 33890 too.
The listener module is adjusted accordingly. Advisory is updated.
YAML: OK Tests: OK Code: OK
http://errata.univention.de/ucs/3.2/30.html