"Smith Bill" <[email protected]> writes:

> I have a bash shell script that is executed from the 'on commit'
> statement in the DHCPD.CONF file of an installation of ISC DHCP (the
> host OS is Fedora 15); one of the lines in the script is:
>
>  
>
> klist |grep DHCPTEST.COM
>
>  
>
> If I run the script from a shell command prompt, the variable '$?' is
> set to 0 (which is what I expect as there is an entry for DHCPTEST.COM);
> if the script is executed from the 'on commit' statement of the
> DHCPD.CONF file, the variable '$?' is set to 1 (indicating failure).

Are you sure that your environment variables are pointing to the right
credentials cache when the script runs from dhcpd?
________________________________________________
Kerberos mailing list           [email protected]
https://mailman.mit.edu/mailman/listinfo/kerberos

Reply via email to