summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2008-05-10 18:11:24 +0000
committerStef Walter <stef@memberwebs.com>2008-05-10 18:11:24 +0000
commit969b4e32a5157d1423ca82c0e3ad55bed9a96f7a (patch)
treef0c163e9b3de53f79e34743b97fcd53206277ed5
parent83eb5d0f3e9701f5c8a8d2da6c4b6709f02ed35a (diff)
Handle sub requests properly in mod_httpauth
-rw-r--r--ChangeLog3
-rw-r--r--apache2x/mod_httpauth.c7
-rw-r--r--configure.in4
3 files changed, 11 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 8bc079a..1ec24ae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+0.9.2 ???
+ - Authenticate sub requests properly.
+
0.9.1 [09-05-2008]
- Fix building pgsql and mysql modules.
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:
diff --git a/configure.in b/configure.in
index 93dd8ae..8606554 100644
--- a/configure.in
+++ b/configure.in
@@ -36,8 +36,8 @@ dnl Stef Walter <stef@memberwebs.com>
dnl
dnl Process this file with autoconf to produce a configure script.
-AC_INIT(httpauth, 0.9.1, stef@memberwebs.com)
-AM_INIT_AUTOMAKE(httpauth, 0.9.1)
+AC_INIT(httpauth, 0.9.1.90, stef@memberwebs.com)
+AM_INIT_AUTOMAKE(httpauth, 0.9.1.90)
LDFLAGS="$LDFLAGS -L/usr/local/lib"
CFLAGS="$CFLAGS -I/usr/local/include -g -O0"