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
use principal from context freeipa-543-whoami.patch
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
Login to comment on this ticket.