Whamcloud - gitweb
LU-16646 krb: improve lookup of user's credentials 77/50377/7
authorSebastien Buisson <sbuisson@ddn.com>
Wed, 22 Mar 2023 16:09:58 +0000 (17:09 +0100)
committerOleg Drokin <green@whamcloud.com>
Tue, 11 Apr 2023 21:57:27 +0000 (21:57 +0000)
commit4b12f2b9ae14556285529b40985a7c3aacdbb7f4
tree28045e9e2afd444368cbfaf934a314fc7238cb58
parent9784178eff0ad61acedb50ed4bfbb423cafe32b4
LU-16646 krb: improve lookup of user's credentials

Rather than only looking up for user's credentials in hard-coded
FILE:/tmp/krb5cc_<uid>, try first the default ccache on the system,
and then fallback to files matching /tmp/*krb5cc* and
/run/user/<uid>/*krb5cc*.

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: Ic2bedb4cc12e9adad0ce63bd0617b2e0ec13907e
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50377
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Aurelien Degremont <adegremont@nvidia.com>
Reviewed-by: Jonathan Calmels <jcalmels@nvidia.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/utils/gss/lgss_krb5_utils.c
lustre/utils/gss/lgss_krb5_utils.h