[Samba] FSMO Transfer fail

Rowland penny rpenny at samba.org
Thu Jul 7 20:03:05 UTC 2016


On 07/07/16 20:49, Anderson Hoffmann do Carmo wrote:
> Fail! :-(
>
> root at gteste2:~# samba-tool fsmo transfer --role=all -UAdministrador
> FSMO transfer of 'rid' role successful
> FSMO transfer of 'pdc' role successful
> FSMO transfer of 'naming' role successful
> FSMO transfer of 'infrastructure' role successful
> FSMO transfer of 'schema' role successful
> ERROR(<type 'exceptions.UnboundLocalError'>): uncaught exception - local
> variable 'master_guid' referenced before assignment
>    File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line
> 175, in _run
>      return self.run(*args, **kwargs)
>    File "/usr/lib/python2.7/dist-packages/samba/netcmd/fsmo.py", line 452,
> in run
>      transfer_dns_role(self.outf, sambaopts, credopts, "domaindns", samdb)
>    File "/usr/lib/python2.7/dist-packages/samba/netcmd/fsmo.py", line 76, in
> transfer_dns_role
>      master_dns_name = '%s._msdcs.%s' % (master_guid,
> root at gteste2:~#
> root at gteste2:~#
>
>
> ​Thanks,
> ​Anderson Hoffmann​
>
>
>
>

OK, you need to use a user that has the required permissions to transfer 
or seize the dns fsmo roles, that will cure your first problem. The 
second will take sometime, the error message is trying to tell you that 
you do not have an fsmo roleowner for at least one of the dns roles. 
There are patches going through Samba-technical, but they seem to have 
got stuck, so I have prodded Andrew and asked him to either push my 
patches or his changes to them.

Rowland




More information about the samba mailing list