[Samba] Computer name in ADUC

Rowland penny rpenny at samba.org
Thu Jun 18 08:14:21 UTC 2020

On 18/06/2020 08:51, henri transfert via samba wrote:
> So what is the way to properly change the name of a client computer ?

Louis and myself tried to write a script to do just this, but failed 
because he was changing the name via Windows (as you are) and I was 
using ldbrename. After some confusion, it became obvious that Windows 
changed  everything except the dn,cn,name and distinguishedName, 
ldbrename changed nothing but the dn,cn,name and distinguishedName. 
Neither method changed everything.

So, in my opinion (and you are not going to like this), the best way to 
change a computer name is to walk to the computer, leave the domain, 
change computer name, reboot and then rejoin the domain :-(


More information about the samba mailing list