[Samba] Looking for Python docs/examples to modify DNS via keytab

Rowland Penny rpenny at samba.org
Sun Jun 30 07:56:50 UTC 2024


On Sun, 30 Jun 2024 00:22:57 -0700
christian baltini <christian.baltini at gmail.com> wrote:
> 
> This is the output I get:
> 
> (venv) root at ubu1:~/py_krb# samba-tool dns zonelist localhost
> --use-krb5-ccache=/tmp/krb5cc_0 Failed to bind to uuid
> 50abc2a4-574d-40b3-9d66-ee4fd5fba076 for
> ncacn_ip_tcp:127.0.0.1[49153,sign,abstract_syntax=50abc2a4-574d-40b3-9d66-ee4fd5fba076/0x00000005,localaddress=127.0.0.1]
> NT_STATUS_INVALID_PARAMETER ERROR: Connecting to DNS RPC server
> 127.0.0.1 failed with (3221225485, 'An invalid parameter was passed
> to a service or function.')
> 
> Am I wrong in thinking this is necessarily some type of kerberos auth
> issue?
> 

Well, yes and no ;-)

Kerberos only works using names not ipaddresses, 'localhost' becomes
'127.0.0.1' and there is your 'NT_STATUS_INVALID_PARAMETER'. Try it
with the DCs short hostname.

Rowland

PS, please just reply to the list, do not 'CC' me.



More information about the samba mailing list