Univention Bugzilla – Bug 37388
S4 connector does not support renaming windows clients
Last modified: 2016-12-01 11:57:21 CET
Renaming a joined windows client is not supported by the s4 connector at the moment. If renamed, computer objects get an new samAccountName and display name in s4 but not in UCS. We may need a kind of post_modify function for windowscomputer to change the at least the uid of the UCS object (maybe we should change the cn/dn too?). QA/Tests: After the computer was renamed the uid/samaccountname attributes and the SID's should be the same. gpupdate on the windows client should be possible. After gpupdate "smbstatus" on the UCS server should display the correct (new) computer name.
*** Bug 36762 has been marked as a duplicate of this bug. ***
*** Bug 39883 has been marked as a duplicate of this bug. ***
Please also note Bug 31083 Comment 8: ============================================================================== Difference between renaming in AD and Samba: During rename of a computer in AD, all attributes of the computer object are modified (dn, cn, name, displaName, sAMAccountname, ...). But in Samba dn, cn, and name are not modified! ==============================================================================
*** Bug 40938 has been marked as a duplicate of this bug. ***
Workaround (at the time of writing): ## If "$newname" is the new client name without trailing $-sign: udm computers/windows modify --dn "$windowsclient" --set name="$newname"
Created attachment 8207 [details] windowscomputer_sync_s4_to_ucs_check_rename.patch This post_ucs_modify_function for 'windowscomputers' automatizes the UDM rename of Comment 5.
Advisory: univention-s4-connector.yaml
* i always get Renaming client from [u'WIN8PRO'] to WIN8PRO seems that the test if cn has been changed is not correct * please merge to 4.2-0
Fixed, merged and built, advisory updated.
OK - renaming via windows client (ldap s4 cn, uid sAMAccountName in sync) OK - winxp, win8, win7 OK - gpupdate /force, smbstatus OK - merged to 4.2-0 OK - YAML
see https://forge.univention.org/bugzilla/show_bug.cgi?id=40435#c8 is this a side effect of the s4 connector changes?
svn r74663 makes uid.rstrip('$')
> is this a side effect of the s4 connector changes? No it's not. > svn r74663 makes uid.rstrip('$') Yes, to obtain the expected_cn. What's wrong about that?
(In reply to Arvid Requate from comment #13) > > is this a side effect of the s4 connector changes? > > No it's not. > > > svn r74663 makes uid.rstrip('$') > > Yes, to obtain the expected_cn. What's wrong about that? Nothing :) I just thought it could be in relation with 40435#c8.
(In reply to Arvid Requate from comment #13) > > is this a side effect of the s4 connector changes? > > No it's not. > > > svn r74663 makes uid.rstrip('$') > > Yes, to obtain the expected_cn. What's wrong about that? OK
<http://errata.software-univention.de/ucs/4.1/345.html>