You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by mi...@apache.org on 2013/12/12 00:08:42 UTC
svn commit: r1550307 - /httpd/httpd/trunk/modules/aaa/mod_auth_form.c
Author: minfrin
Date: Wed Dec 11 23:08:42 2013
New Revision: 1550307
URL: http://svn.apache.org/r1550307
Log:
mod_auth_form: Make the trace logging consistent through the notes, session
and form authentication steps.
Modified:
httpd/httpd/trunk/modules/aaa/mod_auth_form.c
Modified: httpd/httpd/trunk/modules/aaa/mod_auth_form.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/aaa/mod_auth_form.c?rev=1550307&r1=1550306&r2=1550307&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/aaa/mod_auth_form.c (original)
+++ httpd/httpd/trunk/modules/aaa/mod_auth_form.c Wed Dec 11 23:08:42 2013
@@ -505,7 +505,7 @@ static void get_notes_auth(request_rec *
r->user = (char *) *user;
}
- ap_log_rerror(APLOG_MARK, APLOG_TRACE6, 0, r,
+ ap_log_rerror(APLOG_MARK, APLOG_TRACE1, 0, r,
"from notes: user: %s, pw: %s, method: %s, mimetype: %s",
user ? *user : "<null>", pw ? *pw : "<null>",
method ? *method : "<null>", mimetype ? *mimetype : "<null>");
@@ -566,7 +566,7 @@ static apr_status_t get_session_auth(req
r->user = (char *) *user;
}
- ap_log_rerror(APLOG_MARK, APLOG_TRACE2, 0, r,
+ ap_log_rerror(APLOG_MARK, APLOG_TRACE1, 0, r,
"from session: " MOD_SESSION_USER ": %s, " MOD_SESSION_PW
": %s, " MOD_AUTH_FORM_HASH ": %s",
user ? *user : "<null>", pw ? *pw : "<null>",
@@ -668,6 +668,13 @@ static int get_form_auth(request_rec * r
}
}
+ ap_log_rerror(APLOG_MARK, APLOG_TRACE1, 0, r,
+ "from form: user: %s, pw: %s, method: %s, mimetype: %s, location: %s",
+ sent_user ? *sent_user : "<null>", sent_pw ? *sent_pw : "<null>",
+ sent_method ? *sent_method : "<null>",
+ sent_mimetype ? *sent_mimetype : "<null>",
+ sent_loc ? *sent_loc : "<null>");
+
/* set the user, even though the user is unauthenticated at this point */
if (sent_user && *sent_user) {
r->user = (char *) *sent_user;