Hi,
i transfered the roles from DC2 to DC1:
root at dc1:~# samba-tool fsmo transfer --role=all -U administrator
This DC already has the 'rid' FSMO role
This DC already has the 'pdc' FSMO role
This DC already has the 'naming' FSMO role
This DC already has the 'infrastructure' FSMO role
This DC already has the 'schema' FSMO role
This DC already has the 'domaindns' FSMO role
Password for [EXAMPLE\administrator]:
ERROR(<type 'exceptions.AttributeError'>): uncaught exception -
'module' object has no attribute 'drs_utils'
File
"/opt/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py",
line 176, in _run
return self.run(*args, **kwargs)
File "/opt/samba/lib/python2.7/site-packages/samba/netcmd/fsmo.py",
line 492, in run
samdb)
File "/opt/samba/lib/python2.7/site-packages/samba/netcmd/fsmo.py",
line 129, in transfer_dns_role
except samba.drs_utils.drsException, e:
Is this a bug ?
it seems, that the script transfered the roles:
root at dc1:~# samba-tool fsmo show
SchemaMasterRole owner: CN=NTDS
Settings,CN=DC1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=example,DC=net
InfrastructureMasterRole owner: CN=NTDS
Settings,CN=DC1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=example,DC=net
RidAllocationMasterRole owner: CN=NTDS
Settings,CN=DC1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=example,DC=net
PdcEmulationMasterRole owner: CN=NTDS
Settings,CN=DC1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=example,DC=net
DomainNamingMasterRole owner: CN=NTDS
Settings,CN=DC1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=example,DC=net
DomainDnsZonesMasterRole owner: CN=NTDS
Settings,CN=DC1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=example,DC=net
ForestDnsZonesMasterRole owner: CN=NTDS
Settings,CN=DC1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=example,DC=net
Can i do other tests to see if everything was transfered well?
regards,
heinz
Rowland Penny
2016-Sep-30 08:31 UTC
[Samba] uncaught exception on samba-tool fsmo transfer
On Fri, 30 Sep 2016 10:20:27 +0200 Heinz Hölzl via samba <samba at lists.samba.org> wrote:> Hi, > > i transfered the roles from DC2 to DC1: > > root at dc1:~# samba-tool fsmo transfer --role=all -U administrator > This DC already has the 'rid' FSMO role > This DC already has the 'pdc' FSMO role > This DC already has the 'naming' FSMO role > This DC already has the 'infrastructure' FSMO role > This DC already has the 'schema' FSMO role > This DC already has the 'domaindns' FSMO role > Password for [EXAMPLE\administrator]: > ERROR(<type 'exceptions.AttributeError'>): uncaught exception - > 'module' object has no attribute 'drs_utils' File > "/opt/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", > line 176, in _run return self.run(*args, **kwargs) File > "/opt/samba/lib/python2.7/site-packages/samba/netcmd/fsmo.py", line > 492, in run samdb) File > "/opt/samba/lib/python2.7/site-packages/samba/netcmd/fsmo.py", line > 129, in transfer_dns_role except samba.drs_utils.drsException, e: > > > Is this a bug ? > > it seems, that the script transfered the roles: > > root at dc1:~# samba-tool fsmo show > SchemaMasterRole owner: CN=NTDS > Settings,CN=DC1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=example,DC=net > InfrastructureMasterRole owner: CN=NTDS > Settings,CN=DC1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=example,DC=net > RidAllocationMasterRole owner: CN=NTDS > Settings,CN=DC1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=example,DC=net > PdcEmulationMasterRole owner: CN=NTDS > Settings,CN=DC1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=example,DC=net > DomainNamingMasterRole owner: CN=NTDS > Settings,CN=DC1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=example,DC=net > DomainDnsZonesMasterRole owner: CN=NTDS > Settings,CN=DC1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=example,DC=net > ForestDnsZonesMasterRole owner: CN=NTDS > Settings,CN=DC1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=example,DC=net > > Can i do other tests to see if everything was transfered well? > > regards, > heinz > >What version of Samba is this ? Rowland