Harald Barth
2015-03-11 17:53:52 UTC
I have just installed a mint 17.1 and with that I got a
1.6~git20131207+dfsg-1ubuntu1 heimdal.
Now the kinit I got with that behaves very strange:
In spite setting KRB5CCNAME to FILE:/tmp/xxx, kinit still updates
FILE:/tmp/krb5cc_MYUID when the principal matches what already is in
FILE:/tmp/krb5cc_MYUID, but makes a new credential cache in
FILE:/tmp/xxx when the principal does not match.
This is not the expected behaviour and the manpage for kinit says:
KRB5CCNAME
Specifies the default credentials cache.
without mentioning any exceptions.
As well I expect kinit and klist to work on the same credential
cache when I set the default cache with KRB5CCNAME and have not
taken any other steps.
Can someone point me to the patch which has introduced this nonsense?
Is this bug known/fixed in 1.6 tip and/or HEAD?
I guess that this behaviour is somehow related to kswitch.
Is there some documentation which shows how kswitch and KRB5CCNAME
interact?
Is there some documentation how I can specify several caches of type
FILE to kswitch to choose from?
As you might guess, my first meet with this new credential cache
switching functinality is not a happy one and cost me some time
searching around to where the heck my credentials were gone.
KRB5CCNAME has for years specified the location where to find my
credential cache and to change that behaviour without warning
is just evil. Look at the following two scenarios:
Day1:
kinit -l1d ***@REALM2
KRB5CCNAME=FILE:/tmp/my-batch-job-credentials kinit -l1w ***@REALM1
KRB5CCNAME=FILE:/tmp/my-batch-job-credentials run-batchjob &
# work all day with things in REALM2
kdestroy
#batchjob works
Day2:
kinit -l1d ***@REALM1
KRB5CCNAME=FILE:/tmp/my-batch-job-credentials kinit -l1w ***@REALM1
# work all day with things in REALM1
kdestroy
#batchjob crashes
Now try to explain that to the user. User says: "Kerberos is evil and
lets my jobs crash. I hate Kerberos and will do everything in my power
that Kerberos will not be used in my academic environment any more."
Harald.
1.6~git20131207+dfsg-1ubuntu1 heimdal.
Now the kinit I got with that behaves very strange:
In spite setting KRB5CCNAME to FILE:/tmp/xxx, kinit still updates
FILE:/tmp/krb5cc_MYUID when the principal matches what already is in
FILE:/tmp/krb5cc_MYUID, but makes a new credential cache in
FILE:/tmp/xxx when the principal does not match.
This is not the expected behaviour and the manpage for kinit says:
KRB5CCNAME
Specifies the default credentials cache.
without mentioning any exceptions.
As well I expect kinit and klist to work on the same credential
cache when I set the default cache with KRB5CCNAME and have not
taken any other steps.
Can someone point me to the patch which has introduced this nonsense?
Is this bug known/fixed in 1.6 tip and/or HEAD?
I guess that this behaviour is somehow related to kswitch.
Is there some documentation which shows how kswitch and KRB5CCNAME
interact?
Is there some documentation how I can specify several caches of type
FILE to kswitch to choose from?
As you might guess, my first meet with this new credential cache
switching functinality is not a happy one and cost me some time
searching around to where the heck my credentials were gone.
KRB5CCNAME has for years specified the location where to find my
credential cache and to change that behaviour without warning
is just evil. Look at the following two scenarios:
Day1:
kinit -l1d ***@REALM2
KRB5CCNAME=FILE:/tmp/my-batch-job-credentials kinit -l1w ***@REALM1
KRB5CCNAME=FILE:/tmp/my-batch-job-credentials run-batchjob &
# work all day with things in REALM2
kdestroy
#batchjob works
Day2:
kinit -l1d ***@REALM1
KRB5CCNAME=FILE:/tmp/my-batch-job-credentials kinit -l1w ***@REALM1
# work all day with things in REALM1
kdestroy
#batchjob crashes
Now try to explain that to the user. User says: "Kerberos is evil and
lets my jobs crash. I hate Kerberos and will do everything in my power
that Kerberos will not be used in my academic environment any more."
Harald.