[Samba] samba-tool user to edit users..?

Rowland Penny rowlandpenny at googlemail.com
Thu Aug 21 06:58:00 MDT 2014


On 21/08/14 13:47, mourik jan heupink - merit wrote:
> Hi!
>
> On 8/21/2014 14:36, Rowland Penny wrote:
>> You could check what AD thinks the FQDN is:
>
> It tells me that the dNSHostName: filehost.olddomain.com
>
> Ok.
>
> This probably means that at the time filehost joined our AD, it was 
> still having a old 'hostname -f' output, right? The 'hostname -f' is 
> what determines the dNSHostName in AD i guess?
>
> So, I guess with correcting the hostname to our new domain, I forgot 
> to update /etc/hosts. ('old domain' and 'new domain' in this case has 
> nothing to do with the samba.company.com, but long time ago we really 
> had a different 'company.com')
>
> So... as this is working in production, I don't want to mess around 
> immediately, but I guess that the fastest fix is to 'unjoin' filehost, 
> and rejoin it? (this time with hostname -f showing the CURRENT fqdn)
>
> Right?
You could try editing the machines AD record:

ldbedit -e nano -H /var/lib/samba/private/sam.ldb -b "CN=<computer 
name>,CN=Computers,DC=example,DC=com"

Rowland


More information about the samba mailing list