From: John Kohl Date: Tue, 1 May 1990 16:47:34 +0000 (+0000) Subject: log the request X-Git-Tag: krb5-1.0-alpha2~757 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f232c2d21d58a601d3d7c462565f837e3c784672;p=krb5.git log the request git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@639 dc483132-0cff-0310-8789-dd5450dbe970 --- 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,