From 0857036424dd0a4eeff50ae1cb740c0cb2155ed8 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Sun, 21 Nov 2010 19:55:40 +0100 Subject: [PATCH 1/1] Log remote-IP on login attempts By Stuart Cianos --- citadel/citserver.c | 4 ++-- citadel/citserver.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/citadel/citserver.c b/citadel/citserver.c index 859c25fa9..1df958512 100644 --- a/citadel/citserver.c +++ b/citadel/citserver.c @@ -1032,10 +1032,10 @@ void do_command_loop(void) { /* Log the server command, but don't show passwords... */ if ( (strncasecmp(cmdbuf, "PASS", 4)) && (strncasecmp(cmdbuf, "SETP", 4)) ) { - CtdlLogPrintf(CTDL_INFO, "%s\n", cmdbuf); + CtdlLogPrintf(CTDL_INFO, "CtdlCommand [%s] [%s] %s\n", CTDLUSERIP, CC->curr_user, cmdbuf); } else { - CtdlLogPrintf(CTDL_INFO, "