]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix KDC client referrals
authorGreg Hudson <ghudson@mit.edu>
Thu, 3 Sep 2015 16:38:44 +0000 (12:38 -0400)
committerTom Yu <tlyu@mit.edu>
Wed, 9 Dec 2015 22:27:41 +0000 (17:27 -0500)
commit437fbad4bfb7176d304eed7cdc4b877afa6d9a7d
treef90c78c23cd4e76fb87bbe6e97db98dcb512f87e
parent52d1cadf0cec3882efe46335b3784a20c7d04cc2
Fix KDC client referrals

Although our built-in KDB modules do not support client referrals for
AS requests, the KDC is supposed to return one if a third-party module
returns a DB entry containing a principal in a foreign realm.
Unfortunately, this code has never worked; in prepare_error_as(), we
erroneously compare the protocol code errcode against the com_err code
KRB5KDC_ERR_WRONG_REALM; as a result, we never supply the canonical
client principal.  Fix this by comparing errcode against the protocol
code KDC_ERR_WRONG_REALM instead.

Discovered by Alexander Bokovoy and Simo Sorce.

(cherry picked from commit 4e036ef4127a9b09d1a567472da1df24c55cdb89)

ticket: 8312 (new)
version_fixed: 1.12.5
status: resolved
src/kdc/do_as_req.c