[Samba] Problem trying join Samba 4.18 to Windows AD

Miguel Angel Coa M. miguelcoam at gmail.com
Sun Aug 27 14:21:03 UTC 2023


Hi,
I have Rocky Linux 8 with Samba 4.18.6 compiled, and trying join to Windows
Server AD 2012 DC (2008 R2 function level).

1. sambadc05.domain.cl is the Samba 4.18.
2. windowsdc01.domain.cl is the Windows Ad.

[..............................]
PS C:\Windows\system32> Get-ADForest | Fl Name, ForestMode
Name       : domain.cl
ForestMode : Windows2008R2Forest
[..............................]

But i've the next error after a few minutes and sync process:

[..............................]
Replicated 139 objects (0 linked attributes) for DC=mydomain,DC=cl
Partition[DC=mydomain,DC=cl] objects[81336/127121]
linked_values[20217/22649]
Remote server advised us of a new partition
DC=DomainDnsZones,DC=mydomain,DC=cl while processing DC=mydomain,DC=cl,
ignoring
dsdb_replicated_objects_convert: Ignoring object outside partition
e34d97b5-37ca-4b1e-bc7f-b1ae18613198 DC=DomainDnsZones,DC=mydomain,DC=cl:
WERR_DS_ADD_REPLICA_INHIBITED:
.....
.....
.....Could not find machine account in secrets database: Failed to fetch
machine account password for MYDOMAIN from both secrets.ldb (Could not find
entry to match filter: '(&(flatname=MYDOMAIN)(objectclass=primaryDomain))'
base: 'cn=Primary Domains': No such object: dsdb_search at
../../source4/dsdb/common/util.c:5435) and from
/usr/local/samba/private/secrets.tdb:
NT_STATUS_CANT_ACCESS_DOMAIN_INFODeleted CN=RID Set,CN=SAMBADC05,OU=Domain
Controllers,DC=domain,DC=cl
Deleted CN=SAMBADC05,OU=Domain Controllers,DC=domain,DC=cl
Deleted CN=NTDS
Settings,CN=SAMBADC05,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=domain,DC=cl
Deleted
CN=SAMBADC05,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=domain,DC=cl
ERROR(ldb): uncaught exception - end_trans error on DC=domain,DC=cl: An
operation failed during a batch mode transaction, the transaction was
rolled back
  File
"/usr/local/samba/lib64/python3.6/site-packages/samba/netcmd/__init__.py",
line 230, in _run
    return self.run(*args, **kwargs)
  File
"/usr/local/samba/lib64/python3.6/site-packages/samba/netcmd/domain.py",
line 740, in run:
[..............................]

For join used the next command:

[..............................]
samba-tool domain join mydomain.cl DC -U "mydomain\administrator" --realm=
MYDOMAIN.CL -W MYDOMAIN --server=windowsdc01.mydomain.cl --password=secret
--dns-backend=BIND9_DLZ -d3
[..............................]

I read another similar threads but not found
https://lists.samba.org/archive/samba/2018-November/219590.html

Saludos.
---
Miguel Coa M.


More information about the samba mailing list