diff options
author | Lukas Hejtmanek <xhejtman@ics.muni.cz> | 2008-07-15 10:02:49 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2008-07-15 10:02:49 -0400 |
commit | b13f13b0f2ebdadc47eef8bf3fd4eb076e144fda (patch) | |
tree | 8f6f81f87f95d6d14ccd24b7b5078c0642c0211d /utils/gssd/gssd_proc.c | |
parent | 710765a87d599d95de51b79202ba3d82fd03ed95 (diff) | |
download | nfs-utils-b13f13b0f2ebdadc47eef8bf3fd4eb076e144fda.tar.gz nfs-utils-b13f13b0f2ebdadc47eef8bf3fd4eb076e144fda.tar.xz nfs-utils-b13f13b0f2ebdadc47eef8bf3fd4eb076e144fda.zip |
gssd_setup_krb5_user_gss_ccache must return an error if no usable cache is
found. Trying to use invalid default cache and continue is not good idea at all.
Signed-off-by: Lukas Hejtmanek <xhejtman@ics.muni.cz>
Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/gssd/gssd_proc.c')
-rw-r--r-- | utils/gssd/gssd_proc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/utils/gssd/gssd_proc.c b/utils/gssd/gssd_proc.c index be6f440..a145081 100644 --- a/utils/gssd/gssd_proc.c +++ b/utils/gssd/gssd_proc.c @@ -703,9 +703,8 @@ handle_krb5_upcall(struct clnt_info *clp) if (uid != 0 || (uid == 0 && root_uses_machine_creds == 0)) { /* Tell krb5 gss which credentials cache to use */ for (dirname = ccachesearch; *dirname != NULL; dirname++) { - gssd_setup_krb5_user_gss_ccache(uid, clp->servername, *dirname); - - create_resp = create_auth_rpc_client(clp, &rpc_clnt, &auth, uid, + if (gssd_setup_krb5_user_gss_ccache(uid, clp->servername, *dirname) == 0) + create_resp = create_auth_rpc_client(clp, &rpc_clnt, &auth, uid, AUTHTYPE_KRB5); if (create_resp == 0) break; |