From 52b507d64cf8251934212ac76866235582772642 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 22 Mar 2011 12:47:18 -0400 Subject: [PATCH] Log citadel protocol commands using the session number and also the user number in addition to their name, instead of the IP address (which with IPv6 is going to create just way too much volume). This is part of my continuing attempt to figure out why turning on guest mode on Uncensored is giving everyone access to my mailbox. --- citadel/citserver.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/citadel/citserver.c b/citadel/citserver.c index 2b70a2667..ca442f9be 100644 --- a/citadel/citserver.c +++ b/citadel/citserver.c @@ -1037,10 +1037,14 @@ void do_command_loop(void) { /* Log the server command, but don't show passwords... */ if ( (strncasecmp(cmdbuf, "PASS", 4)) && (strncasecmp(cmdbuf, "SETP", 4)) ) { - syslog(LOG_INFO, "CtdlCommand [%s] [%s] %s\n", CTDLUSERIP, CC->curr_user, cmdbuf); + syslog(LOG_INFO, "[%d][%s(%ld)] %s", + CC->cs_pid, CC->curr_user, CC->user.usernum, cmdbuf + ); } else { - syslog(LOG_INFO, "CtdlCommand [%s] [%s]