samba-tool gpo listall failing - what's going on please

Matt Grant matt at mattgrant.net.nz
Mon Nov 7 00:48:47 UTC 2022


Hi!

Got samba-tool gpo listall failing as well as the other samba-tool gpo
commands with the same error.  Command output follows.  This is on Samba
4.16.5.

Need to get it going to initialise and administer GPOs properly.

Thank you!

Matt Grant
--
smb-ad1: -admin- [~]
$ sudo samba-tool gpo listall -d3
lpcfg_load: refreshing parameters from /etc/samba/smb.conf
ldb_wrap open of secrets.ldb
GENSEC backend 'gssapi_spnego' registered
GENSEC backend 'gssapi_krb5' registered
GENSEC backend 'gssapi_krb5_sasl' registered
GENSEC backend 'spnego' registered
GENSEC backend 'schannel' registered
GENSEC backend 'ncalrpc_as_system' registered
GENSEC backend 'sasl-EXTERNAL' registered
GENSEC backend 'ntlmssp' registered
GENSEC backend 'ntlmssp_resume_ccache' registered
GENSEC backend 'http_basic' registered
GENSEC backend 'http_ntlm' registered
GENSEC backend 'http_negotiate' registered
GENSEC backend 'krb5' registered
GENSEC backend 'fake_gssapi_krb5' registered
interpret_interface: Adding interface fd14:828:ba69:12::2/64
interpret_interface: Adding interface fd14:828:ba69:12::2/64
interpret_interface: Adding interface fd14:828:ba69:12::2/64
interpret_interface: Adding interface fd14:828:ba69:12::2/64
resolve_lmhosts: Attempting lmhosts lookup for name _ldap._
tcp.SMB.ANATHOTH.NET<0x0>
dns child failed to find name '_ldap._tcp.SMB.ANATHOTH.NET' of type SRV
finddcs: Failed to find SRV record for _ldap._tcp.SMB.ANATHOTH.NET
ERROR(runtime): uncaught exception - ('Could not find a DC for domain',
NTSTATUSError(3221225524, 'The object name is not found.'))
  File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 186,
in _run
    return self.run(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/samba/netcmd/gpo.py", line 469, in
run
    self.url = dc_url(self.lp, self.creds, H)
  File "/usr/lib/python3/dist-packages/samba/netcmd/gpo.py", line 127, in
dc_url
    raise RuntimeError("Could not find a DC for domain", e)

smb-ad1: -admin- [~]
$ view +127 /usr/lib/python3/dist-packages/samba/netcmd/gpo.py

smb-ad1: -admin- [~]
$ host -t SRV _ldap._tcp.SMB.ANATHOTH.NET
_ldap._tcp.SMB.ANATHOTH.NET has SRV record 0 100 389
smb-ad1.smb.anathoth.net.

smb-ad1: -admin- [~]
$ host smb-ad1.smb.anathoth.net.
smb-ad1.smb.anathoth.net has IPv6 address fd14:828:ba69:12::2

smb-ad1: -admin- [~]
$


More information about the samba-technical mailing list