]> 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>
Mon, 30 Dec 2013 23:58:03 +0000 (18:58 -0500)
commitf37067776f9431879769f3874fdab6120ba3f155
treee2b25d3b6dfab47656dac9d546aa1eef08023255
parent815565f918f2c64c59561dbe37efc251ddb67c22
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]

ticket: 7802
target_version: 1.12.1
tags: pullup
src/kdc/do_as_req.c
src/kdc/do_tgs_req.c