[Samba] Disk faillure on DC

Carlos Jesus camjesus2 at gmail.com
Wed Feb 19 23:46:42 UTC 2020


Hi all, again, I ask for your help.
I have a domain with 2DC's running samba 4.10.6. The disk on the DC holding
the FSMO's failed. I recovered most of it from backups, and reinstalled
samba hopping to rejoin it to the domain.
However, when I try
# kinit administrator
#samba-tool domain join eurohidra.local DC -Uadministrator
I get
#Could not find machine account in secrets database: Failed to fetch
machine account password from secrets.ldb: Could not find entry to match
filter: '(&(flatname=EUROHIDRA)(objectclass=primaryDomain))' base:
'cn=Primary Domains': No such object: dsdb_search at
../../source4/dsdb/common/util.c:4712 and failed to open
/usr/local/samba/private/secrets.tdb: NT_STATUS_CANT_ACCESS_DOMAIN_INFO
Adding CN=EHSERVER,OU=Domain Controllers,DC=eurohidra,DC=local
Join failed - cleaning up
Could not find machine account in secrets database: Failed to fetch machine
account password from secrets.ldb: Could not find entry to match filter:
'(&(flatname=EUROHIDRA)(objectclass=primaryDomain))' base: 'cn=Primary
Domains': No such object: dsdb_search at
../../source4/dsdb/common/util.c:4712 and failed to open
/usr/local/samba/private/secrets.tdb: NT_STATUS_CANT_ACCESS_DOMAIN_INFO
ERROR(ldb): uncaught exception - LDAP error 68 LDAP_ENTRY_ALREADY_EXISTS -
 <Entry CN=EHSERVER,OU=Domain Controllers,DC=eurohidra,DC=local already
exists> <>
  File
"/usr/local/samba/lib/python3.7/site-packages/samba/netcmd/__init__.py",
line 185, in _run
    return self.run(*args, **kwargs)
  File
"/usr/local/samba/lib/python3.7/site-packages/samba/netcmd/domain.py", line
700, in run
    backend_store=backend_store)
  File "/usr/local/samba/lib/python3.7/site-packages/samba/join.py", line
1535, in join_DC
    ctx.do_join()
  File "/usr/local/samba/lib/python3.7/site-packages/samba/join.py", line
1427, in do_join
    ctx.join_add_objects()
  File "/usr/local/samba/lib/python3.7/site-packages/samba/join.py", line
641, in join_add_objects
    ctx.samdb.add(rec, controls=controls)

I changed the dns server on resolv.conf to point to the 2nd DC.
I do have a recent samba backup, but would prefer no to go that way since I
have a running DC.
Any ideas?

Best regards
Carlos


More information about the samba mailing list