Kerberos Problem with 'cron' or 'at'
After many days of hair pulling I have run into a problem running a perl script that uses Kerberos for authentication. This started out as what I thought was a problem with the perl module Authen::Krb5. I had a script that worked fine from the command line but when run from 'cron' or 'at' (i.e. no attached console) it would fail with the error:
Credentials cache I/O operation failed XXX
It turns out, according to the perl module author, that is error is coming from the Kerberos library not his module. He then suggested that I check the environment variable, KRB5CCNAME. Under normal implementations this is supposed to be the path for the credentials cache file. Under OS X this variable does not exist. If I set this variable, it apparently is not used.
So I have 2 basic questions. Where does OS X put the credentials cache file? Where ever that place is, why can it not be written when a script runs without a console? TIA.
Credentials cache I/O operation failed XXX
It turns out, according to the perl module author, that is error is coming from the Kerberos library not his module. He then suggested that I check the environment variable, KRB5CCNAME. Under normal implementations this is supposed to be the path for the credentials cache file. Under OS X this variable does not exist. If I set this variable, it apparently is not used.
So I have 2 basic questions. Where does OS X put the credentials cache file? Where ever that place is, why can it not be written when a script runs without a console? TIA.
Xserve, Mac OS X (10.4.11)