Scott Goodwin
2014-Jan-29 21:33 UTC
[Samba] Rename computer, but still shows up as old name
Samba Version 4.1.4-SerNet-RedHat-7.el6 Using RSAT via Windows 8.1 -- For a computer that is on the domain, I rename it from the client, then reboot. This renames the computer as expected. The common name in AD, however, is not affected. Is there a way to do this? Am I missing a step? Details: Using RSAT, I see the old computer name, not the new computer name. If I double click on the entity, I see on the General tab that the Computer name and and DNS name ARE changed. It's just the common name that isn't updated. On command line: samba-tool spn list dompc-newname$ This gives me: dompc-newname$ User CN=DOMPC-OLDNAME,OU=Desktops,OU=Domain Computers,DC=example,DC=com has the following servicePrincipalName: HOST/DOMPC-NEWNAME ...etc... As you can see, it sees the new name everywhere except in the CN. So, is this expected behavior? I'm not seeing an obvious way to rename CN to new name, either via RSAT or via samba-tool. The workaround is, of course, to unjoin from domain, then rejoin, but I'd rather not have to do that if I don't have to. Thanks, and let me know if you need more deets.
Andrew Bartlett
2014-Feb-05 18:51 UTC
[Samba] Rename computer, but still shows up as old name
On Wed, 2014-01-29 at 13:33 -0800, Scott Goodwin wrote:> Samba Version 4.1.4-SerNet-RedHat-7.el6 > Using RSAT via Windows 8.1 > -- > For a computer that is on the domain, I rename it from the client, then > reboot. This renames the computer as expected. The common name in AD, > however, is not affected. Is there a way to do this? Am I missing a step? > Details: Using RSAT, I see the old computer name, not the new computer > name. If I double click on the entity, I see on the General tab that the > Computer name and and DNS name ARE changed. It's just the common name that > isn't updated. On command line: > samba-tool spn list dompc-newname$ > > This gives me: > dompc-newname$ > User CN=DOMPC-OLDNAME,OU=Desktops,OU=Domain Computers,DC=example,DC=com has > the following servicePrincipalName: > HOST/DOMPC-NEWNAME > ...etc... > > As you can see, it sees the new name everywhere except in the CN. > > So, is this expected behavior? I'm not seeing an obvious way to rename CN > to new name, either via RSAT or via samba-tool. The workaround is, of > course, to unjoin from domain, then rejoin, but I'd rather not have to do > that if I don't have to. > > Thanks, and let me know if you need more deets.It would really be up to the client tool that is renaming the account to change the DN. Samba doesn't really know this operation as anything special. Naturally, if you find Windows does differently, please help us figure out how and why. Thanks, Andrew Bartlett -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba
Hi, I?m running into the same problem, found a nice script for renaming computer names but in RSAT the shown name is still the old...only in the properties you can see the new one. Is anybody working on this problem ?...would be nice Cheers Frank "Scott Goodwin" <scott at mimicsimulation.com> schrieb im Newsbeitrag news:CAGD7qf8WwM7VXPfk3F_to63t32G+S4VghHdnwz1JL87oVMMroQ at mail.gmail.com...> Samba Version 4.1.4-SerNet-RedHat-7.el6 > Using RSAT via Windows 8.1 > -- > For a computer that is on the domain, I rename it from the client, then > reboot. This renames the computer as expected. The common name in AD, > however, is not affected. Is there a way to do this? Am I missing a > step? > Details: Using RSAT, I see the old computer name, not the new computer > name. If I double click on the entity, I see on the General tab that the > Computer name and and DNS name ARE changed. It's just the common name that > isn't updated. On command line: > samba-tool spn list dompc-newname$ > > This gives me: > dompc-newname$ > User CN=DOMPC-OLDNAME,OU=Desktops,OU=Domain Computers,DC=example,DC=com > has > the following servicePrincipalName: > HOST/DOMPC-NEWNAME > ...etc... > > As you can see, it sees the new name everywhere except in the CN. > > So, is this expected behavior? I'm not seeing an obvious way to rename CN > to new name, either via RSAT or via samba-tool. The workaround is, of > course, to unjoin from domain, then rejoin, but I'd rather not have to do > that if I don't have to. > > Thanks, and let me know if you need more deets. > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >