[Samba] Unable to join DC to domain
Rowland penny
rpenny at samba.org
Mon Mar 28 10:31:17 UTC 2016
On 28/03/16 10:00, IT Admin wrote:
>
> Sorry, I meant to include the command you sent in my last message, I
> had executed it while troubleshooting...
>
> :~$ sudo /usr/local/samba/bin/ldbsearch --cross-ncs -H
> /usr/local/samba/private/sam.ldb '(fsmoroleowner=*)' | grep 'dn:' |
> sed 's|dn: ||'
>
> CN=Schema,CN=Configuration,DC=cb,DC=cliffbells,DC=com
> CN=Partitions,CN=Configuration,DC=cb,DC=cliffbells,DC=com
> CN=Infrastructure,DC=DomainDnsZones,DC=cb,DC=cliffbells,DC=com
> CN=Infrastructure,DC=ForestDnsZones,DC=cb,DC=cliffbells,DC=com
> CN=RID Manager$,CN=System,DC=cb,DC=cliffbells,DC=com
> DC=cb,DC=cliffbells,DC=com
> CN=Infrastructure,DC=cb,DC=cliffbells,DC=com
>
> I have tried to seize role=all --force...
>
> ERROR(<type 'exceptions.KeyError'>): uncaught exception - 'No such
> element'
> File
> "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py",
> line 175, in _run
> return self.run(*args, **kwargs)
> File
> "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/fsmo.py",
> line 339, in run
> self.seize_role("rid", samdb, force)
> File
> "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/fsmo.py",
> line 255, in seize_role
> master_owner = get_fsmo_roleowner(samdb, m.dn)
> File
> "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/fsmo.py",
> line 42, in get_fsmo_roleowner
> master_owner = res[0]["fSMORoleOwner"][0]
>
> I found another thread about the issue:
> http://www.spinics.net/lists/samba/msg131164.html
>
> I'm in a bit over my head, any help is greatly appreciated.
>
> JS
>
>
OK, lets take these one by one, you seem to have a problem with the
ridmaster fsmo role, what does this return:
ldbsearch -H /var/lib/samba/private/sam.ldb -b
'CN=System,DC=cb,DC=cliffbells,DC=com' -s sub
'(&(objectclass=rIDManager)(cn=RID Manager$))' fSMORoleOwner
On my system:
# record 1
dn: CN=RID Manager$,CN=System,DC=samdom,DC=example,DC=com
fSMORoleOwner: CN=NTDS
Settings,CN=DC1,CN=Servers,CN=Default-First-Site-Name,C
N=Sites,CN=Configuration,DC=samdom,DC=example,DC=com
Rowland
More information about the samba
mailing list