mirror of
https://github.com/apache/httpd.git
synced 2025-11-08 04:22:21 +03:00
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
This commit is contained in:
@@ -288,12 +288,6 @@ static int authenticate_basic_user(request_rec *r)
|
|||||||
return return_code;
|
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;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user