From: Bradley Nicholes Date: Wed, 18 Aug 2004 16:28:57 +0000 (+0000) Subject: Both the r->user and r->ap_auth_type were set previously when the username and passwo... X-Git-Tag: STRIKER_2_1_0_RC1~90 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=500074e2f5cc5c8624d40e93d56ccc865afc42c8;p=apache Both the r->user and r->ap_auth_type were set previously when the username and password were extracted from the request. Resetting them at the end of the handler will overwrite any changes made by the authn provider. For example, the ldap authn provider can be configured to change the user name to a full user dn. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104712 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/aaa/mod_auth_basic.c b/modules/aaa/mod_auth_basic.c index 346f71116b..a6abd73fa7 100644 --- a/modules/aaa/mod_auth_basic.c +++ b/modules/aaa/mod_auth_basic.c @@ -288,12 +288,6 @@ static int authenticate_basic_user(request_rec *r) return return_code; } - /* Now that we are done, set the request_rec values so others will know - * who we are. - */ - r->user = (char*)sent_user; - r->ap_auth_type = "Basic"; - return OK; }