From f232c2d21d58a601d3d7c462565f837e3c784672 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Tue, 1 May 1990 16:47:34 +0000 Subject: [PATCH] log the request git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@639 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kdc/do_as_req.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/kdc/do_as_req.c b/src/kdc/do_as_req.c index 25b83f820..ef54b2dd1 100644 --- a/src/kdc/do_as_req.c +++ b/src/kdc/do_as_req.c @@ -29,6 +29,8 @@ static char rcsid_do_as_req_c[] = #include #include +#include + #include "kdc_util.h" #include "policy.h" #include "extern.h" @@ -64,6 +66,17 @@ krb5_data **response; /* filled in with a response packet */ krb5_keyblock encrypting_key; krb5_timestamp until, rtime; + char *cname = 0, *sname = 0; + + if (retval = krb5_unparse_name(request->client, &cname)) + return(retval); + if (retval = krb5_unparse_name(request->server, &sname)) { + free(cname); + return(retval); + } + syslog(LOG_INFO, "AS_REQ: %s for %s", cname, sname); + free(cname); + free(sname); nprincs = 1; if (retval = krb5_db_get_principal(request->client, &client, &nprincs, -- 2.26.2