]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix KRB5_GC_CACHED for S4U2Self requests 1107/head
authorGreg Hudson <ghudson@mit.edu>
Wed, 26 Aug 2020 15:15:11 +0000 (11:15 -0400)
committerGreg Hudson <ghudson@mit.edu>
Mon, 7 Sep 2020 20:30:35 +0000 (16:30 -0400)
commitc770dfd7e2e5ca91fc1c450f60c2f546c0c2bd61
tree5b02b34cd5983b29566d8d2b50dad649e5602213
parent91596ae028cf458b61c03c13dee8c0b7039b8d76
Fix KRB5_GC_CACHED for S4U2Self requests

In krb5_get_credentials_for_user(), always exit after the first cache
check if KRB5_GC_CACHED is specified.  Not making network requests
with this flag is more important than finding a post-realm-discovery
cached entry.

If KRB5_GC_CACHED is specified without a principal name, fail
immediately, as we cannot check the cache by certificate.

ticket: 8942 (new)
src/lib/krb5/krb/s4u_creds.c