Query how to klist tickets stored in Memory cache

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Query how to klist tickets stored in Memory cache

Santosh Kumar
All,

Could you please help how can i list tickets stored in memory:


Have  set default cache :
error = krb5_cc_set_default_name(context, "*MEMORY:kcduser_28535_1533898755*
");

i.e  ./kinit -V -k -t /tmp/test1.keytab  -f 'host/
[hidden email]' -c MEMORY:kcduser_285351_153385

How to list tickets in memory ?

klist -c MEMORY:kcduser_285351_153385
klist: No credentials cache found while retrieving principal name

In case of default FILE cache it lists fine,
./klist/klist -c /tmp/krb5cc_36073
Ticket cache: FILE:/tmp/krb5cc_36073


Appreciate your help.

Thanks
Santosh
________________________________________________
Kerberos mailing list           [hidden email]
https://mailman.mit.edu/mailman/listinfo/kerberos
Reply | Threaded
Open this post in threaded view
|

Re: Query how to klist tickets stored in Memory cache

Greg Hudson
On 08/12/2018 06:30 AM, Santosh Kumar wrote:
> Could you please help how can i list tickets stored in memory:

MEMORY ccaches are not shared between processes.  So running "kinit -c
MEMORY:..." won't have any lasting effect; the credentials will be
discarded when the kinit process completes.

________________________________________________
Kerberos mailing list           [hidden email]
https://mailman.mit.edu/mailman/listinfo/kerberos