Howto find if a user has tickets

steve steve at steve-ss.com
Mon Apr 23 15:01:07 EDT 2012


Hi
I need to test whether the user has tickets before running a script. 
ldbmodify needs this:
--kerberos=yes --krb5-ccache=$ccache
passing to it:

function setup {
ccache=$(klist -e | grep Ticket | cut -d ":" -f3)
if [ -z $ccache ]
then
echo "Please get a ticket. Try: kinit"
exit 1
fi

But maybe it's an old cache not destroyed.

Is there and easy way to do this?

Cheers,
Steve


More information about the Kerberos mailing list