From 9f03118f8e9e2a475ae4054d5d20254112163728 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Mon, 25 Mar 1991 11:22:43 +0000 Subject: [PATCH] log what server wasn't found git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1947 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kdc/kdc_util.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/kdc/kdc_util.c b/src/kdc/kdc_util.c index 5b4b5c462..d2d1cb912 100644 --- a/src/kdc/kdc_util.c +++ b/src/kdc/kdc_util.c @@ -26,6 +26,8 @@ static char rcsid_kdc_util_c[] = #include #include +#include + /* * concatenate first two authdata arrays, returning an allocated replacement. * The replacement should be freed with krb5_free_authdata(). @@ -189,7 +191,14 @@ krb5_ticket **ticket; cleanup_apreq(); return(KRB5KDC_ERR_PRINCIPAL_NOT_UNIQUE); } else if (nprincs != 1) { + char *sname; + krb5_db_free_principal(&server, nprincs); + if (!krb5_unparse_name(apreq->ticket->server, &sname)) { + syslog(LOG_ERR, "TGS_REQ: can't find key for '%s'", + sname); + free(sname); + } cleanup_apreq(); return(KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN); } -- 2.26.2