Noël Köthe
2014-Jan-16 14:22 UTC
[Samba] samba-tool -k option requires an argument but which one:)
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>
Michael Wood
2014-Jan-27 07:39 UTC
[Samba] samba-tool -k option requires an argument but which one:)
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 >