#227 freeipa/ipalib/util.py:get_current_prinicpal returns old value after kdestroy/kinit
Closed: Fixed None Opened 13 years ago by admiyo.

Steps to reproduce:

create two users. I user admin and kfrog

kinit admin
ipa whoami
expect result admin@...
kdestroy
kinit kfrog
ipa whoami
expect result kfrog@...
actual result admin@...

Does not happen with 100% reproducibility, but more often than not.


Is this using apache or lite-server?

Apache. Have not tested with lite.

Behavior seems to be the same regardless of CLI or Web browser. One thing that I did notice was that killing and restarting the browser seemed to set things right

the problem is that we call util. get_current_principal(), which does return unicode(krbV.default_context().default_ccache().principal().name) which gets the wrong cache

master: ed56112

For testing you should be able to switch users at will and run ipa user-show --whoami and have the right entry appear.

Metadata Update from @admiyo:
- Issue assigned to rcritten
- Issue set to the milestone: FreeIPA 2.0 - 2010/09

7 years ago

Login to comment on this ticket.

Metadata