Web lists-archives.com

Re: [Samba] SAMBA failed join domain DC




On Mon, 19 Feb 2018 16:59:07 +0500
"denis.shigapov" <denis.shigapov@xxxxxxxxxxxxxxx> wrote:

> run samba-tool domain join example.ru DC --server=srv-dc01.example.ru
> --username=vas.lah --password=password --realm=EXAMPLE.RU --site=SITE2
> 
> Failed to fetch machine account password for EXAMPLE from both
> secrets.ldb (Could not find entry to match filter:
> '(&(f$atname=EXAMPLE)(objectclass=primaryDomain))' base: 'cn=Primary
> Domains': No such object: dsdb_search at
> ../source4/dsdb/common/util.c:4636) and from
> /var/lib/samba/private$secrets.tdb:
> NT_STATUS_CANT_ACCESS_DOMAIN_INFODeleted CN=RID Set,CN=SRV-SITE2-
> DC1,OU=Domain Controllers,DC=example,DC=ruDeleted CN=SRV-SITE2-
> DC1,OU=Domain Controllers,DC=example,DC=ruDeleted CN=NTDS
> Settings,CN=SRV-SITE2-
> DC1,CN=Servers,CN=SITE2,CN=Sites,CN=Configuration,DC=example,DC=ruDelet
> ed CN=SRV-SITE2-
> DC1,CN=Servers,CN=SITE2,CN=Sites,CN=Configuration,DC=example,DC=ruERROR
> (runtime): uncaught exception - (9003,
> 'WERR_DNS_ERROR_RCODE_NAME_ERROR')  File "/usr/lib64/python2.7/site-
> packages/samba/netcmd/__init__.py", line 176, in _run    return
> self.run(*args, **kwargs)  File "/usr/lib64/python2.7/site-
> packages/samba/netcmd/domain.py", line 661, in
> run    machinepass=machinepass, use_ntvfs=use_ntvfs,
> dns_backend=dns_backend)  File "/usr/lib64/python2.7/site-
> packages/samba/join.py", line 1474, in join_DC    ctx.do_join()  File
> "/usr/lib64/python2.7/site-packages/samba/join.py", line 1384, in
> do_join    ctx.join_add_dns_records()  File
> "/usr/lib64/python2.7/site- packages/samba/join.py", line 1116, in
> join_add_dns_records    dns_partition=domaindns_zone_dn)  File
> "/usr/lib64/python2.7/site-packages/samba/samdb.py", line 939, in
> dns_lookup    dns_partition=dns_partition)
> 

Is this the entire output after you run the samba-tool command ?

If not can you post the entire output, you can send it to me offlist if
you want.

The problem does seem to be missing dns records.

Rowland

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba