summaryrefslogtreecommitdiff
path: root/apache2x
diff options
context:
space:
mode:
Diffstat (limited to 'apache2x')
-rw-r--r--apache2x/mod_httpauth.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apache2x/mod_httpauth.c b/apache2x/mod_httpauth.c
index 2050534..3e11750 100644
--- a/apache2x/mod_httpauth.c
+++ b/apache2x/mod_httpauth.c
@@ -740,8 +740,13 @@ static int httpauth_authenticate(request_rec* r)
mainreq = mainreq->prev;
/* Check if we've already authenticated this request */
- if(ap_get_module_config(mainreq->request_config, &httpauth_module))
+ details = ap_get_module_config(mainreq->request_config, &httpauth_module);
+ if(details)
+ {
+ r->user = apr_pstrdup(r->pool, details);
+ r->ap_auth_type = HTTPAUTH_AUTHTYPE;
return OK;
+ }
/* For jumping to when a connection has been closed */
retry: