From: John Kohl Date: Mon, 25 Mar 1991 11:22:43 +0000 (+0000) Subject: log what server wasn't found X-Git-Tag: krb5-1.0-alpha4~26 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9f03118f8e9e2a475ae4054d5d20254112163728;p=krb5.git log what server wasn't found git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1947 dc483132-0cff-0310-8789-dd5450dbe970 --- 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); }