Univention Bugzilla – Bug 50305
Remove normalise_userAccountControl()
Last modified: 2019-11-06 14:41:04 CET
The function normalise_userAccountControl() sets the value of 'userAccountControl' hardcoded to '512' (up to 10 times in a loop) when creating a user object in Samba4-LDAP. The function is a "post_con_create_functions" of the "user" mapping. We can instead simply set the value directly in the addlist. Maybe in the AD-Connector this is necessary. But with the current Samba version setting the attribute directly works fine.
Created attachment 10196 [details] patch (git:fbest/50305-remove-normalise-userAccountControl)
Function has been marked as deprecated. The mapping now adds the value directly, which saves at least one ldap call. univention-s4-connector (13.0.2-49) a00ac4c2cd4b | Bug #50305: do not use normalise_userAccountControl() anymore. univention-s4-connector.yaml a00ac4c2cd4b | Bug #50305: do not use normalise_userAccountControl() anymore.
Verified: * Code review, for 'user' this now works in the same way as in 'windowscomputer' and 'dc'. * Functional test * Advisory Ok
<http://errata.software-univention.de/ucs/4.4/330.html>