[Samba] error with joining new DC to domain

Tim Beale timbeale at catalyst.net.nz
Wed Dec 12 20:58:22 UTC 2018


Maybe check what site the existing DCs are in? You might need to specify
a --site option to the join command. It appears that the default site
(CN=Default-First-Site-Name) doesn't exist.

We could really go for a better error message here...

On 13/12/18 3:43 AM, peter grotz via samba wrote:
> I forgot: this is samba 4.9.3 on centos 7
>
> Thanks
>
>
> Hello,
>
> I got a problem with adding an new dc to a domain. when I try to join I get the following:
>
>
>
> [root at dc-12 etc]# samba-tool domain join obel.lan DC -Uadministrator --server=dc-11
> Password for [OBEL\administrator]:
>
> workgroup is OBEL
> realm is obel.lan
> Adding CN=DC-12,OU=Domain Controllers,DC=obel,DC=lan
> Adding CN=DC-12,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=obel,DC=lan
> Join failed - cleaning up
> Deleted CN=DC-12,OU=Domain Controllers,DC=obel,DC=lan
> ERROR(ldb): uncaught exception - LDAP error 32 LDAP_NO_SUCH_OBJECT -  <00002030: objectclass: Cannot add CN=DC-12,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=obel,DC=lan, parent does not exist!> <>
>  File "/usr/lib64/python2.7/site-packages/samba/netcmd/__init__.py", line 177, in _run
>    return self.run(*args, **kwargs)
>  File "/usr/lib64/python2.7/site-packages/samba/netcmd/domain.py", line 716, in run
>    backend_store=backend_store)
>  File "/usr/lib64/python2.7/site-packages/samba/join.py", line 1500, in join_DC
>    ctx.do_join()
>  File "/usr/lib64/python2.7/site-packages/samba/join.py", line 1396, in do_join
>    ctx.join_add_objects()
>  File "/usr/lib64/python2.7/site-packages/samba/join.py", line 645, in join_add_objects
>    ctx.samdb.add(rec)
>
>  
> Can anybody help me?
> Thanks,
>
> Peter



More information about the samba mailing list