Skip Menu |

Subject: git commit
Download (untitled) / with headers
text/plain 1.1KiB

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.

[ some changes to variable names and comments; move
responsibility for getting target ccache name from
resolve_target_ccache to main]
Author: Nalin Dahyabhai <>
Committer: Greg Hudson <>
Commit: 3a456898af626dcab4e1ab0749ca2ccb9ad6162b
Branch: master
src/clients/ksu/ccache.c | 35 ++-------
src/clients/ksu/ksu.h | 6 +-
src/clients/ksu/main.c | 181 +++++++++++++++++++++++++++++++++++++---------
3 files changed, 157 insertions(+), 65 deletions(-)