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 2008/04/17 16:03:20 UTC

svn commit: r649113 - /httpd/httpd/trunk/modules/aaa/mod_auth_form.c

Author: minfrin
Date: Thu Apr 17 07:03:14 2008
New Revision: 649113

URL: http://svn.apache.org/viewvc?rev=649113&view=rev
Log:
Ensure that the REMOTE_USER variable is correctly written when the user
has been authenticated from a session.

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=649113&r1=649112&r2=649113&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/aaa/mod_auth_form.c (original)
+++ httpd/httpd/trunk/modules/aaa/mod_auth_form.c Thu Apr 17 07:03:14 2008
@@ -538,6 +538,11 @@
         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;
 
 }