You are not logged in.

#1 2020-02-07 20:05:31

blubberbaer
Member
Registered: 2020-02-04
Posts: 4

samba-dnsupdate.sh, error in line 191 ?

Dear forum,

i'm really a total noob, thus i have to ask, if there is really a little mistake in the samba-dnsupdate.sh script mentioned in

https://wiki.archlinux.org/index.php/Sa … controller or if I simply don't get, how the script is working:

Line 191:

klist $KLISTARG || kinit -k -t "$KEYTAB" -c "$KRB5CC" "$PRINCIPAL" || { logger -s -p daemon.error -t dhcpd kinit for dynamic DNS failed; exit 11; }

Shouldn't the kinit part be executed first, because otherwise there would be no ticket for kerberos ?


Thanks,

blubberbaer

Offline

#2 2020-02-07 21:09:00

seth
Member
Registered: 2012-09-03
Posts: 51,056

Re: samba-dnsupdate.sh, error in line 191 ?

klist $KLISTARG # check whether there's a ticket
||  #else
kinit -k -t "$KEYTAB" -c "$KRB5CC" "$PRINCIPAL" # see whether we can create one
|| # else
{ logger -s -p daemon.error -t dhcpd kinit for dynamic DNS failed; exit 11; } # log failure

Offline

Board footer

Powered by FluxBB