[Samba] problem with role transfer
Giuseppe Arvati
giuseppe.arvati at gmail.com
Tue Mar 23 07:34:58 UTC 2021
Hello,
samba 4.8.8
yesterday I tried to transfer fsmo roles from APAMFS2 to DC1PIOP but
during transfer of forestdns and domaindns I had errors
ERROR(<type 'exceptions.AttributeError'>): uncaught exception - 'module'
object has no attribute 'drs_utils'
File
"/usr/local/samba/lib64/python2.7/site-packages/samba/netcmd/__init__.py",
line 176, in _run
return self.run(*args, **kwargs)
File
"/usr/local/samba/lib64/python2.7/site-packages/samba/netcmd/fsmo.py",
line 520, in run
transfer_dns_role(self.outf, sambaopts, credopts, role, samdb)
File
"/usr/local/samba/lib64/python2.7/site-packages/samba/netcmd/fsmo.py",
line 129, in transfer_dns_role
except samba.drs_utils.drsException, e:
You have new mail in /var/spool/mail/root
[root at dc1piopp script]# samba-tool fsmo transfer --role=domaindns -U
Administrator
Password for [APAM-AD\Administrator]:
ERROR(<type 'exceptions.AttributeError'>): uncaught exception - 'module'
object has no attribute 'drs_utils'
File
"/usr/local/samba/lib64/python2.7/site-packages/samba/netcmd/__init__.py",
line 176, in _run
return self.run(*args, **kwargs)
File
"/usr/local/samba/lib64/python2.7/site-packages/samba/netcmd/fsmo.py",
line 520, in run
transfer_dns_role(self.outf, sambaopts, credopts, role, samdb)
File
"/usr/local/samba/lib64/python2.7/site-packages/samba/netcmd/fsmo.py",
line 129, in transfer_dns_role
except samba.drs_utils.drsException, e:
but the roles seems to be transferred
[root at dc1piopp netcmd]# samba-tool fsmo show
SchemaMasterRole owner: CN=NTDS
Settings,CN=DC1PIOPP,CN=Servers,CN=apamsede,CN=Sites,CN=Configuration,DC=apam-ad,DC=apam,DC=it
InfrastructureMasterRole owner: CN=NTDS
Settings,CN=DC1PIOPP,CN=Servers,CN=apamsede,CN=Sites,CN=Configuration,DC=apam-ad,DC=apam,DC=it
RidAllocationMasterRole owner: CN=NTDS
Settings,CN=DC1PIOPP,CN=Servers,CN=apamsede,CN=Sites,CN=Configuration,DC=apam-ad,DC=apam,DC=it
PdcEmulationMasterRole owner: CN=NTDS
Settings,CN=DC1PIOPP,CN=Servers,CN=apamsede,CN=Sites,CN=Configuration,DC=apam-ad,DC=apam,DC=it
DomainNamingMasterRole owner: CN=NTDS
Settings,CN=DC1PIOPP,CN=Servers,CN=apamsede,CN=Sites,CN=Configuration,DC=apam-ad,DC=apam,DC=it
DomainDnsZonesMasterRole owner: CN=NTDS
Settings,CN=DC1PIOPP,CN=Servers,CN=apamsede,CN=Sites,CN=Configuration,DC=apam-ad,DC=apam,DC=it
ForestDnsZonesMasterRole owner: CN=NTDS
Settings,CN=DC1PIOPP,CN=Servers,CN=apamsede,CN=Sites,CN=Configuration,DC=apam-ad,DC=apam,DC=it
Today I read emails related to the same problem "[Samba] forestdns fsmo
role transfer fails - module 'samba' has no attribute 'drs_utils'"
where the problem was a missing import lib in fsmo.py. I added the lib
and rerun the command but it says
"This DC already has the 'forestdns' FSMO role"
Can I test for possible problems due to errors durind transfer ?
Which kind on commands can I use to verify if all is ok ?
Thnak you
Giuseppe
More information about the samba
mailing list