]> git.ipfire.org Git - thirdparty/krb5.git/commit
Log service princ in KDC more reliably
authorrbasch <probe@tardis.internal.bright-prospects.com>
Mon, 16 Dec 2013 15:54:41 +0000 (10:54 -0500)
committerTom Yu <tlyu@mit.edu>
Thu, 9 Jan 2014 02:46:17 +0000 (21:46 -0500)
commit2eb5cc575aa08b0b4c233c55cf378a5637717a90
tree7175a48de60421764c7adfaf46d8894d10599dcb
parent22cfc33cc61415adccf1d55618d8058d607e6930
Log service princ in KDC more reliably

Under some error conditions, the KDC would log "<unknown server>" for
the service principal because service principal information is not yet
available to the logging functions.  Set the appropriate variables
earlier.

do_as_req.c: After unparsing the client, immediately unparse the
server before searching for the client principal in the KDB.

do_tgs_req.c: Save a pointer to the client-requested service
principal, to make sure it gets logged if an error happens before
search_sprinc() successfully completes.

[tlyu@mit.edu: commit message; fix TGS to catch more error cases]

(cherry picked from commit f37067776f9431879769f3874fdab6120ba3f155)

ticket: 7802
src/kdc/do_as_req.c
src/kdc/do_tgs_req.c