]> git.ipfire.org Git - thirdparty/krb5.git/commit
Make ksu respect the default_ccache_name setting
authorNalin Dahyabhai <nalin@dahyabhai.net>
Thu, 31 Oct 2013 01:47:14 +0000 (21:47 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 8 Aug 2014 17:02:36 +0000 (13:02 -0400)
commit3a456898af626dcab4e1ab0749ca2ccb9ad6162b
tree08d500541e981d2f7aa4211ca27d89fea4d2e7e4
parentdccc80a469b1925fcfe7697406a69912efe4baa1
Make ksu respect the default_ccache_name setting

Move the logic for resolving and initializing a cache that we're
copying creds into out of krb5_ccache_copy(), and let the caller deal
with it.  Add a helper functions to select/resolve an output ccache in
the default location for the target user after we've switched to the
target user's privileges.  If the destination is a collection, take
care not to change which subsidiary is its primary, and reuse a
subsidiary cache if we can.  If the destination is not a collection,
append a unique value to its name to make a new ccache.

[ghudson@mit.edu: some changes to variable names and comments; move
responsibility for getting target ccache name from
resolve_target_ccache to main]

ticket: 7984 (new)
src/clients/ksu/ccache.c
src/clients/ksu/ksu.h
src/clients/ksu/main.c