Commit Graph

10 Commits

Author SHA1 Message Date
Nicolas Williams
a56382ce4d kcm: Treat default name as alias
Both MIT and Heimdal are unable to, in krb5_cc_default(), call to KCM
(or CCAPI, or LSA, or...) to get the user's default ccache name in their
collection.  Instead, the default ccache name is obtained in a static
way, and for KCM that's "%{UID}".  When we krb5_cc_switch(), we simply
maintain a pointer to the name of the ccache that was made the default,
but klist can't make use of this because krb5_cc_default() can't.

The solution here is to first try resolving the ccache name given by the
client, and if that fails but the name happens to be what would be the
library's default KCM ccache name for that user, then try resolving it
through the default ccache name pointer saved at switch time.
2022-01-25 01:17:04 -06:00
Nicolas Williams
3bebbe5323 Fixes to make Heimdal -Wall -Werror clean
These fixes make developer mode build, at least on Ubuntu.
2011-11-02 21:42:08 -05:00
Love Hornquist Astrand
0879b9831a remove trailing whitespace 2011-05-21 11:57:31 -07:00
Love Hornquist Astrand
fe2dfe83a8 clean up and make work, require libheim-ipcs 2009-11-21 23:54:00 -08:00
Love Hörnquist Åstrand
6937d41a02 remove trailing whitespace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:21:03 +00:00
Love Hörnquist Åstrand
80defeb51c (kcm_ccache_new_client): make root be able to pass the name
constraints, not the opposite. From Bryan Jacobs.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20487 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-21 06:25:06 +00:00
Love Hörnquist Åstrand
5285917f50 fix warning.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20471 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-20 10:42:25 +00:00
Love Hörnquist Åstrand
b22da5088e First, it allows root to ignore the
naming conventions.  Second, it allows root to always perform any
operation on any ccache.  Note that root could do this anyway with FILE
ccaches

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20470 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-20 10:41:11 +00:00
Love Hörnquist Åstrand
b2246be54a (kcm_ccache_new_client): Cast snprintf'ed value.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20257 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-02-17 23:42:55 +00:00
Luke Howard
cd8bcb8404 Initial version of KCM daemon
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14544 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-02-03 08:20:00 +00:00