Each cache in folder:
$ ls -l ~/mycache
total 20
-rw------- 1 username username 998 Jan 1 10:18 a.REALM.cache
-rw------- 1 username username 1778 Jun 6 14:58 b.REALM.cache
-rw------- 1 username username 1665 Aug 31 12:22 c.REALM.cache
-rw------- 1 username username 4 Aug 31 15:50 primary
Kerberos environment variable:
$ echo $KRB5CCNAME
DIR:/home/username/mycache
By using klist -l
:
Principal name Cache name
-------------- ----------
But when changing to a specific cache it lists correctly:
$ echo $KRB5CCNAME
FILE:/home/username/mycache/c.REALM.cache
$ klist -l
Principal name Cache name
-------------- ----------
[email protected] FILE:/home/username/mycache/c.REALM.cache (Expired)
I'm expecting that the cache collection lists each principal inside the collection. How can I do that?
So the issue is with how the kerberos is initialized inside of the collection. At the time of logging in it should use the option '-c':
Afterwards by using
klist -l
orklist -A
you can view the cached tickets: