]> git.ipfire.org Git - thirdparty/krb5.git/commit
Tighten up referral recognition in KDC TGS code
authorGreg Hudson <ghudson@mit.edu>
Thu, 29 Aug 2013 22:17:29 +0000 (18:17 -0400)
committerGreg Hudson <ghudson@mit.edu>
Wed, 4 Sep 2013 01:38:31 +0000 (21:38 -0400)
commit2f37634ae89f8bd13ec64120fce56ba5613c498c
treee2eec8eaccbc921adacacbdf964139303f0a410c
parent95b03a6fef4b86d1f8fac0a6ef92e86d836e261f
Tighten up referral recognition in KDC TGS code

In do_tgs_req(), treat the search_sprinc() result as a referral only
if it is a cross-TGS principal and it doesn't match the requested
server principal.  This change fixes two corner cases: (1) when a
client requests a cross-realm TGT, we won't squash the name type in
the response; and (2) if we are serving multiple realms out of the
same KDB, we will properly handle aliases to any local-realm TGT, not
just the one for the configured realm name.

ticket: 7555
src/kdc/do_tgs_req.c