I’m trying to run AD-TAKEOVER, but there are errors. I can’t solve it…
340 2022-11-22 11:37:51,484 Could not find machine account in secrets database: Failed to fetch machine account password for DOMAIN from both secrets.ldb (Could not find entry to match filter: ‘(&(flatname=DOMAIN)(objectclass=primaryDomain))’ base: ‘cn=Primary Domains’: No such object: dsdb_search at …/…/source4/dsdb/common/util.c:4853) and from /var/lib/samba/private/secrets.tdb: NT_STATUS_CANT_ACCESS_DOMAIN_INFO
341 2022-11-22 11:37:51,540 ERROR(runtime): uncaught exception - (9003, ‘WERR_DNS_ERROR_RCODE_NAME_ERROR’)
342 2022-11-22 11:37:51,540 File “/usr/lib/python3/dist-packages/samba/netcmd/init.py”, line 186, in _run
343 2022-11-22 11:37:51,540 return self.run(*args, **kwargs)
344 2022-11-22 11:37:51,540 File “/usr/lib/python3/dist-packages/samba/netcmd/domain.py”, line 723, in run
345 2022-11-22 11:37:51,540 backend_store_size=backend_store_size)
346 2022-11-22 11:37:51,540 File “/usr/lib/python3/dist-packages/samba/join.py”, line 1543, in join_DC
347 2022-11-22 11:37:51,540 ctx.do_join()
348 2022-11-22 11:37:51,540 File “/usr/lib/python3/dist-packages/samba/join.py”, line 1440, in do_join
349 2022-11-22 11:37:51,540 ctx.join_add_dns_records()
350 2022-11-22 11:37:51,540 File “/usr/lib/python3/dist-packages/samba/join.py”, line 1182, in join_add_dns_records
351 2022-11-22 11:37:51,540 dns_partition=domaindns_zone_dn)
352 2022-11-22 11:37:51,541 File “/usr/lib/python3/dist-packages/samba/samdb.py”, line 1425, in dns_lookup
353 2022-11-22 11:37:51,541 dns_partition=dns_partition)