Viagra
Here is a patch that adds the missing username from the HTTP authentication to the logs, its really very simple, I recommend it for 2.3:
--- src/logging.c.orig Sun Sep 11 12:38:53 2005
+++ src/logging.c Sun Sep 11 12:49:49 2005
@@ -99,8 +99,7 @@
**
** ADDR = client->con->ip
** USER = -
-** we should do this for real once we support authentication
-** AUTH = -
+** AUTH = client->username
** DATE = _make_date(client->con->con_time)
** REQUEST = build from client->parser
** CODE = client->respcode
@@ -116,7 +115,7 @@
struct tm thetime;
time_t now;
time_t stayed;
- char *referrer, *user_agent;
+ char *referrer, *user_agent, *username;
now = time(NULL);
@@ -137,6 +136,9 @@
stayed = now - client->con->con_time;
+ if (client->username == NULL) username = "-";
+ else username = client->username;
+
referrer = httpp_getvar (client->parser, "referer");
if (referrer == NULL)
referrer = "-";
@@ -146,8 +148,9 @@
user_agent = "-";
log_write_direct (accesslog,
- "%s - - [%s] \"%s\" %d " FORMAT_UINT64 " \"%s\" \"%s\" %lu",
+ "%s - %s [%s] \"%s\" %d " FORMAT_UINT64 " \"%s\" \"%s\" %lu",
client->con->ip,
+ username,
datebuf,
reqbuf,
client->respcode,