kdc: log principal name in TGT not found error

This commit is contained in:
Luke Howard
2018-12-29 15:01:43 +11:00
parent e6d1c10808
commit d8e4328762

View File

@@ -1248,9 +1248,9 @@ tgs_parse_request(krb5_context context,
ret = krb5_unparse_name(context, princ, &p);
if (ret != 0)
p = failed;
krb5_free_principal(context, princ);
kdc_log(context, config, 0,
"Ticket-granting ticket not found in database: %s", msg);
"Ticket-granting ticket %s not found in database: %s", p, msg);
krb5_free_principal(context, princ);
krb5_free_error_message(context, msg);
if (ret == 0)
free(p);