From: Graham Leggett Date: Thu, 17 Apr 2008 14:03:14 +0000 (+0000) Subject: Ensure that the REMOTE_USER variable is correctly written when the user X-Git-Tag: 2.3.0~711 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23ff756ed4c11f110e593c8f5bfebfc33ec68bad;p=thirdparty%2Fapache%2Fhttpd.git Ensure that the REMOTE_USER variable is correctly written when the user has been authenticated from a session. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@649113 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/aaa/mod_auth_form.c b/modules/aaa/mod_auth_form.c index 8550dd8f96f..c1186d56f06 100644 --- a/modules/aaa/mod_auth_form.c +++ b/modules/aaa/mod_auth_form.c @@ -538,6 +538,11 @@ static apr_status_t get_session_auth(request_rec * r, ap_session_get(r, z, apr_pstrcat(r->pool, authname, "-" MOD_AUTH_FORM_HASH, NULL), hash); } + /* set the user, even though the user is unauthenticated at this point */ + if (user && *user) { + r->user = (char *) *user; + } + return APR_SUCCESS; }