[Samba] samba-tool auth in scripts

Jakob Lenfers lenfers at bigsss-bremen.de
Thu Jan 10 10:42:46 UTC 2019

Am 09.01.19 um 14:01 schrieb Rowland Penny via samba:

> Try reading this:
> https://wiki.samba.org/index.php/Configure_DHCP_to_update_DNS_records_with_BIND9
> It's for DHCP updating dns records, but it uses a dedicated user and
> kerberos, so it should help you.

Thats exactly what I wanted, thanks. Just a little problem, "samba-tool
[...] -k yes" after manual kinit works fine. If I want to use a special
ticket cache as in your example, I cannot find an option in man
samba-tool to supply that filename and the following command therefore
fails (asking for password):

| # init ticket if necessary
| klist -c ~/tmp/ticket-cache -s || kinit -F -k -t
~/etc/dehydrated-service.keytab -c ~/tmp/ticket-cache
dehydrated-service at MY.DOMAIN
| # change records
| samba-tool dns add barva.my.domain my.domain jakob-test TXT "TEEEST"
-k yes

Thanks again,

More information about the samba mailing list