From 44e3c4e620dd4540752663e7a7cd6ba127f39fac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 7 Jun 2007 03:07:42 +0000 Subject: [PATCH] Option to save the request to disk. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20950 ec53bebd-3082-4978-b11e-865c3cabbd6b --- kdc/connect.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kdc/connect.c b/kdc/connect.c index 5b6a837ba..a9e8a537b 100644 --- a/kdc/connect.c +++ b/kdc/connect.c @@ -38,6 +38,9 @@ RCSID("$Id$"); /* Should we enable the HTTP hack? */ int enable_http = -1; +/* Log over requests to the KDC */ +const char *request_log; + /* A string describing on what ports to listen */ const char *port_str; @@ -461,6 +464,9 @@ do_request(krb5_context context, kdc_log(context, config, 0, "Failed processing %lu byte request from %s", (unsigned long)len, d->addr_string); + + if(request_log) + krb5_kdc_save_request(context, request_log, buf, len, d->sa); } /*