Behaviour of krb5 1.12
Markus Moeller
huaraz at moeller.plus.com
Fri Jan 2 17:35:53 EST 2015
Hi,
I lately changed from krb5 1.10 on OpenSuse 12.3 to krb5 1.12 on OpenSuse
13.2 and wonder what is happening
I login as one user and use my kerberised application , switch to a second
user and use the application again, but the credentials from the first user
are used.
# kinit
Password for markus at SUSE.HOME:
# klist -e
Ticket cache: DIR::/run/user/1000/krb5cc/tkt
Default principal: markus at SUSE.HOME
Valid starting Expires Service principal
02/01/15 22:23:54 03/01/15 08:23:54 krbtgt/SUSE.HOME at SUSE.HOME
renew until 03/01/15 22:23:54, Etype (skey, tkt): arcfour-hmac,
arcfour-hmac
# /opt/dante/bin/socksify wget -O /tmp/tmp.out http://www.test.com
# klist -e
Ticket cache: DIR::/run/user/1000/krb5cc/tkt
Default principal: markus at SUSE.HOME
Valid starting Expires Service principal
02/01/15 22:23:54 03/01/15 08:23:54 krbtgt/SUSE.HOME at SUSE.HOME
renew until 03/01/15 22:23:54, Etype (skey, tkt): arcfour-hmac,
arcfour-hmac
02/01/15 22:25:23 03/01/15 08:23:54 rcmd/opensuse13.suse.home at SUSE.HOME
renew until 03/01/15 22:23:54, Etype (skey, tkt): arcfour-hmac,
arcfour-hmac
Change user:
# kinit mm at WIN2003R2.HOME
Password for mm at WIN2003R2.HOME:
# klist -e
Ticket cache: DIR::/run/user/1000/krb5cc/tkt3a1A8Y
Default principal: mm at WIN2003R2.HOME
Valid starting Expires Service principal
02/01/15 22:30:51 03/01/15 08:30:51 krbtgt/WIN2003R2.HOME at WIN2003R2.HOME
renew until 03/01/15 22:30:44, Etype (skey, tkt): arcfour-hmac,
arcfour-hmac
# /opt/dante/bin/socksify wget -O /tmp/tmp.out http://www.test.com
# klist -e
Ticket cache: DIR::/run/user/1000/krb5cc/tkt3a1A8Y
Default principal: mm at WIN2003R2.HOME
Valid starting Expires Service principal
02/01/15 22:30:51 03/01/15 08:30:51 krbtgt/WIN2003R2.HOME at WIN2003R2.HOME
renew until 03/01/15 22:30:44, Etype (skey, tkt): arcfour-hmac,
arcfour-hmac
I see no service principal and looking at the cache directory I see
ls -ltr /run/user/1000/krb5cc/
total 16
-rw------- 1 markus users 4 Jan 2 22:00 tktrFbVvG
-rw------- 1 markus users 1163 Jan 2 22:25 tkt
-rw------- 1 markus users 1280 Jan 2 22:30 tkt3a1A8Y
-rw------- 1 markus users 10 Jan 2 22:30 primary
and it looks like the client used the tkt file.
# klist -e -c /run/user/1000/krb5cc/tkt
Ticket cache: FILE:/run/user/1000/krb5cc/tkt
Default principal: markus at SUSE.HOME
Valid starting Expires Service principal
02/01/15 22:23:54 03/01/15 08:23:54 krbtgt/SUSE.HOME at SUSE.HOME
renew until 03/01/15 22:23:54, Etype (skey, tkt): arcfour-hmac,
arcfour-hmac
02/01/15 22:25:23 03/01/15 08:23:54 rcmd/opensuse13.suse.home at SUSE.HOME
renew until 03/01/15 22:23:54, Etype (skey, tkt): arcfour-hmac,
arcfour-hmac
How do I switch/delete it ? kdestroy doesn't
# kdestroy
# ls -ltr /run/user/1000/krb5cc/
total 12
-rw------- 1 markus users 4 Jan 2 22:00 tktrFbVvG
-rw------- 1 markus users 1163 Jan 2 22:25 tkt
-rw------- 1 markus users 10 Jan 2 22:30 primary
Is this a new expected behaviour ?
Thank you
Markus
More information about the Kerberos
mailing list