[Samba] samba-tool -k option requires an argument but which one:)

Noël Köthe noel at debian.org
Thu Jan 16 07:22:32 MST 2014


Hello,

maybe someone can help me to get this right.:)
samba 4.1.3 on Debian

the samba-tool manpage says:
...
       -k KERBEROS|--kerberos=KERBEROS
           Use Kerberos
...

adding a dns record works as expected:
root at samba:~# samba-tool dns add localhost example.com www CNAME web.example.com 
Password for [administrator at EXAMPLE.COM]:
Record added successfully

Now trying to use the -k option:

# klist
Ticket cache: FILE:/tmp/krb5cc_0
Default principal: administrator at EXAMPLE.COM

Valid starting       Expires              Service principal
16.01.2014 14:32:30  17.01.2014 00:32:30  krbtgt/EXAMPLE.COM at EXAMPLE.COM
        renew until 17.01.2014 14:32:26

root at samba:~# samba-tool dns add localhost example.com www2 CNAME web.example.com -k
Usage: samba-tool dns add <server> <zone> <name> <A|AAAA|PTR|CNAME|NS|MX|SRV|TXT> <data>

samba-tool dns add: error: -k option requires an argument


root at samba:~# samba-tool dns add localhost example.com www2 CNAME web.example.com -k KERBEROS
Usage: samba-tool dns add <server> <zone> <name> <A|AAAA|PTR|CNAME|NS|MX|SRV|TXT> <data>

samba-tool dns add: error: invalid -k option value: KERBEROS

root at samba:~# samba-tool dns add localhost example.com www2 CNAME web.example.com -k yes
Failed to setup SPNEGO negTokenInit request: NT_STATUS_INVALID_PARAMETER
Failed to start GENSEC client mechanism (null): NT_STATUS_INVALID_PARAMETER
Failed to bind to uuid 50abc2a4-574d-40b3-9d66-ee4fd5fba076 for 50abc2a4-574d-40b3-9d66-ee4fd5fba076 at ncacn_ip_tcp:127.0.0.1[1024,sign] NT_STATUS_INVALID_PARAMETER
ERROR(runtime): uncaught exception - (-1073741811, 'Unexpected information received')
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, in _run
    return self.run(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 1056, in run
    dns_conn = dns_connect(server, self.lp, self.creds)
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 37, in dns_connect
    dns_conn = dnsserver.dnsserver(binding_str, lp, creds)

What is a possible or the correct argument for the -k option?

Thank you.

-- 
Noël Köthe <noel debian.org>
Debian GNU/Linux, www.debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.samba.org/pipermail/samba/attachments/20140116/eaf26d48/attachment.pgp>


More information about the samba mailing list