[Samba] Can't join new samba dc to existing dc

Rowland Penny rpenny at samba.org
Sat Aug 17 06:58:20 UTC 2024


On Sat, 17 Aug 2024 00:19:45 +0700
fransnicho via samba <samba at lists.samba.org> wrote:

> Thanks for your response 
> 
> it at dc4:~$ sudo  ldbsearch --cross-ncs -H
> /var/lib/samba/private/sam.ldb -P -b
> 'CN=DC4,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=nicho,DC=com'
> # record 1
> dn: CN=NTDS
> Settings,CN=DC4,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=nicho,DC=com
> objectClass: top
> objectClass: applicationSettings
> objectClass: nTDSDSA
> cn: NTDS Settings
> ...................
> hasMasterNCs: CN=Configuration,DC=nicho,DC=com
> hasMasterNCs: DC=nicho,DC=com
> hasMasterNCs: CN=Schema,CN=Configuration,DC=nicho,DC=com
> .........................

That shows that your DC knows about the 'nTDSDSA' objectclass and the
'hasMasterNCs' attribute, so why, when you attempt to join another DC
does it say:

objectclass_attrs: attribute 'hasMasterNCs' on entry 'CN=NTDS
Settings,CN=DC6,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=nicho,DC=com'
does not exist in the specified objectclasses!

?????????????

> Please find my answers below :
> 
> What OS are you using ?
> Ubuntu 20.04.5 LTS
> 
> Where have you got the Samba packages from ?
> Originally was samba package for ubuntu 20.04 then i upgrade to samba
> 4.19.5

20.04 comes with Samba 4.15.13, so where did you get the 4.19.5
packages from ?

> 
> Have you installed all the Samba packages ?
> Yes

Please provide a list of the installed Samba packages.

> 
> When the domain was first provisioned, was it as a Samba AD domain, or
> was it originally a Microsoft one and if it was a Microsoft one,which
> version.
> The domain was first provisioned originally Windows 2003 R2.
> 
> Is something wrong with my schema ?

Probably not, but what does this command show:

ldbsearch -H /var/lib/samba/private/sam.ldb -P -b
'cn=Schema,cn=Configuration,DC=nicho,DC=com' -s base objectVersion

Rowland





More information about the samba mailing list