Fetch forwardable TGT without GC_CACHED

Just in case it is not the start TGT, in which case it is generally,
but not always, already cached.  Just in case get it again, if lost.
This commit is contained in:
Viktor Dukhovni
2015-04-09 01:59:50 +00:00
committed by Nicolas Williams
parent 52b046c636
commit d09430d68b

View File

@@ -316,8 +316,13 @@ _krb5_get_krbtgt(krb5_context context,
krb5_free_principal(context, tmp_cred.client);
return ret;
}
/*
* The forwardable TGT might not be the start TGT, in which case, it is
* generally, but not always already cached. Just in case, get it again if
* lost.
*/
ret = krb5_get_credentials(context,
KRB5_GC_CACHED,
0,
id,
&tmp_cred,
cred);