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
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.
[firstname.lastname@example.org: commit message; fix TGS to catch more error cases]
Author: rbasch <email@example.com>
Committer: Tom Yu <firstname.lastname@example.org>
src/kdc/do_as_req.c | 13 +++++++++++++
src/kdc/do_tgs_req.c | 5 +++++
2 files changed, 18 insertions(+), 0 deletions(-)