[Samba] Can't join new samba dc to existing dc
fransnicho
fransnicho at gmail.com
Sat Aug 17 09:21:14 UTC 2024
On Sat, Aug 17, 2024, 13:59 Rowland Penny via samba <samba at lists.samba.org>
wrote:
> 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
>
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
Hi Rowland,
Thanks for your response 🙏
Is it ok to have 2 records on the
CN=DC4,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=nicho,DC=com
?
20.04 comes with Samba 4.15.13, so where did you get the 4.19.5
packages from ?
deb http://ppa.launchpad.net/linux-schools/samba-latest/ubuntu focal main
Please provide a list of the installed Samba packages.
it at dc4:~$ sudo apt list samba --installed
Listing... Done
samba/focal,now 2:4.19.5+karoshi-1~linuxschools1+focal1 amd64 [installed]
Probably not, but what does this command show:
it at dc4:~$ sudo ldbsearch -H /var/lib/samba/private/sam.ldb -P -b
'cn=Schema,cn=Configuration,DC=nicho,DC=com' -s base objectVersion
# record 1
dn: CN=Schema,CN=Configuration,DC=nicho,DC=com
objectVersion: 69
# returned 1 records
# 1 entries
# 0 referrals
Best Regards,
Nicho.
More information about the samba
mailing list