EXZA Support
2022-Mar-16 05:19 UTC
[Samba] :Domain Join Fail with this error "NT_STATUS_CANT_ACCESS_DOMAIN_INFO" - (samba-4.15.4)
Hi, Iam attempting to join a new server (samba-4.15.4 installed in a new server) to an existing samba AD. But getting the error and the domain join failed, The error is listed below. An operation failed during a batch mode transaction, the transaction was rolled back Join failed - cleaning up ldb_wrap open of secrets.ldb *Could not find machine account in secrets database: Failed to fetch machine account password for KTK from both secrets.ldb (Could not find entry to match filter: '(&(flatname=KTK)(objectclass=primaryDomain))' base: 'cn=Primary Domains': No such object: dsdb_search at ../../source4/dsdb/common/util.c:4764) and from /usr/local/samba/private/secrets.tdb: NT_STATUS_CANT_ACCESS_DOMAIN_INFO* Deleted CN=RID Set,CN=DC3,OU=Domain Controllers,DC=ktk,DC=com Deleted CN=DC3,OU=Domain Controllers,DC=ktk,DC=com Deleted CN=NTDS Settings,CN=DC3,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=ktk,DC=com Deleted CN=DC3,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=ktk,DC=com ERROR(ldb): uncaught exception - end_trans error on DC=ktk,DC=com: 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 186, in _run return self.run(*args, **kwargs) File "/usr/local/samba/lib64/python3.6/site-packages/samba/netcmd/domain.py", line 672, in run backend_store_size=backend_store_size) File "/usr/local/samba/lib64/python3.6/site-packages/samba/join.py", line 1558, in join_DC ctx.do_join() File "/usr/local/samba/lib64/python3.6/site-packages/samba/join.py", line 1448, in do_join ctx.join_replicate() File "/usr/local/samba/lib64/python3.6/site-packages/samba/join.py", line 1039, in join_replicate ctx.local_samdb.transaction_commit() For Adding additional DC to existing one, execute the below command. *#samba-tool domain join ktk.com <http://ktk.com> DC -U"KTK\Administrator" -d4* Let me know about the solution for this error and join the Additional DC without error. Thanks, IT Team
Rowland Penny
2022-Mar-16 07:30 UTC
[Samba] :Domain Join Fail with this error "NT_STATUS_CANT_ACCESS_DOMAIN_INFO" - (samba-4.15.4)
On Wed, 2022-03-16 at 10:49 +0530, EXZA Support via samba wrote:> Hi, > > Iam attempting to join a new server (samba-4.15.4 installed in a new > server) to an existing samba AD. But getting the error and the domain > join > failed, The error is listed below.No it isn't :-)> > > An operation failed during a batch mode transaction, the transaction > was > rolled back > Join failed - cleaning upThe error is above the 'Join failed' line, the rest is just an artefact of the fail. We need more info, what distro etc. Rowland