[Samba] Rename computer, but still shows up as old name

Andrew Bartlett abartlet at samba.org
Wed Feb 5 11:51:15 MST 2014


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




More information about the samba mailing list