I am playing in my lab to learn more on how to get rid of Windows as
DC. A new Samba ADDC has been successfully joined to the domain (after
a downgrade to functional level 2008 from 2012R2).
Replication works between the old HP-SRV02 (Win) and the new HP-SRV10
(Samba), confirmed on both sides. Also, DNS queries can be done to
both servers.
Next step is to convert the Win2019 DC to a regular member server. I
started bt transferring the FSMO roles. It seems to have worked, but
there is an error message that worries me a bit.
root at HP-SRV10:/var/log/samba# samba-tool fsmo transfer --role=all
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
Failed to connect to ldap URL
'ldap://5e505c90-eb8a-4f9f-aee6-6688c2142282._msdcs.hoganas-platslagaren.se'
- LDAP client internal error: NT_STATUS_OBJECT_NAME_NOT_FOUND
Failed to connect to
'ldap://5e505c90-eb8a-4f9f-aee6-6688c2142282._msdcs.hoganas-platslagaren.se'
with backend 'ldap': LDAP client internal error:
NT_STATUS_OBJECT_NAME_NOT_FOUND
ERROR(ldb): uncaught exception - LDAP client internal error:
NT_STATUS_OBJECT_NAME_NOT_FOUND
File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line
186, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python3/dist-packages/samba/netcmd/fsmo.py", line
519, in run
"domaindns", samdb)
File "/usr/lib/python3/dist-packages/samba/netcmd/fsmo.py", line
108, in transfer_dns_role
credentials=creds, lp=lp)
File "/usr/lib/python3/dist-packages/samba/samdb.py", line 71, in
__init__
options=options)
File "/usr/lib/python3/dist-packages/samba/__init__.py", line 114,
in __init__
self.connect(url, flags, options)
File "/usr/lib/python3/dist-packages/samba/samdb.py", line 86, in
connect
options=options)
root at HP-SRV10:/var/log/samba# samba-tool fsmo show
SchemaMasterRole owner: CN=NTDS
Settings,CN=HP-SRV10,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=hoganas-platslagaren,DC=se
InfrastructureMasterRole owner: CN=NTDS
Settings,CN=HP-SRV10,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=hoganas-platslagaren,DC=se
RidAllocationMasterRole owner: CN=NTDS
Settings,CN=HP-SRV10,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=hoganas-platslagaren,DC=se
PdcEmulationMasterRole owner: CN=NTDS
Settings,CN=HP-SRV10,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=hoganas-platslagaren,DC=se
DomainNamingMasterRole owner: CN=NTDS
Settings,CN=HP-SRV10,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=hoganas-platslagaren,DC=se
DomainDnsZonesMasterRole owner: CN=NTDS
Settings\0ADEL:5e505c90-eb8a-4f9f-aee6-6688c2142282,CN=HP-SRV01\0ADEL:fa807549-7d37-4c24-b8c1-d265acacca5e,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=hoganas-platslagaren,DC=se
ForestDnsZonesMasterRole owner: CN=NTDS
Settings\0ADEL:5e505c90-eb8a-4f9f-aee6-6688c2142282,CN=HP-SRV01\0ADEL:fa807549-7d37-4c24-b8c1-d265acacca5e,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=hoganas-platslagaren,DC=se
root at HP-SRV10:/var/log/samba#
This is my generated (and unmodified) smb.conf file
root at HP-SRV10:/var/log/samba# cat /etc/samba/smb.conf
# Global parameters
[global]
netbios name = HP-SRV10
realm = HOGANAS-PLATSLAGAREN.SE
server role = active directory domain controller
workgroup = HPLTS
log level = 1
[sysvol]
path = /var/lib/samba/sysvol
read only = No
[netlogon]
path = /var/lib/samba/sysvol/hoganas-platslagaren.se/scripts
read only = No