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

Michael Wood esiotrot at gmail.com
Mon Jan 27 00:39:59 MST 2014


I think "-k yes" is supposed to work. There is probably something else
wrong. It looks like it's trying to use a null mechanism. Maybe there is a
package you need to install for it to work.

-- 
Michael Wood
On 16 Jan 2014 4:31 PM, "Noël Köthe" <noel at debian.org> wrote:

> 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
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>


More information about the samba mailing list