summaryrefslogtreecommitdiff
path: root/www/ap22-authnz-external/patches/patch-aa
diff options
context:
space:
mode:
authormartti <martti@pkgsrc.org>2008-11-12 09:07:56 +0000
committermartti <martti@pkgsrc.org>2008-11-12 09:07:56 +0000
commitbaa627c8ead3a138ddfd44dd468a347737a471bc (patch)
treedeba332567d5b45a59f33590e4d77cf8bd20d9e9 /www/ap22-authnz-external/patches/patch-aa
parentea9c4fc05b7fb224f792b597b9711f84aa7592d0 (diff)
downloadpkgsrc-baa627c8ead3a138ddfd44dd468a347737a471bc.tar.gz
Updated www/ap22-authnz-external to 3.2.1
* Added AuthExternalContext directive, which defines a string that will be passed to the authenticator in the CONTEXT environment variable. This can be set from the .htaccess file or the <Directory> block to give slightly different behavior from the same authenticator in different directories. Thanks to Olivier Thauvin <nanardon at mandriva dot org> for this patch. * Rewrite external authenticator launching code to use Apache's cross-OS process/thread library instead of directly calling Unix functions. Theoretically this should get us much closer to being usable on non- Unix platforms. * Support alternate syntax for configuration, using DefineAuthExternal and DefineAuthGroup commands. * More detailed error logging. * Much cleanup of documentation.
Diffstat (limited to 'www/ap22-authnz-external/patches/patch-aa')
-rw-r--r--www/ap22-authnz-external/patches/patch-aa16
1 files changed, 8 insertions, 8 deletions
diff --git a/www/ap22-authnz-external/patches/patch-aa b/www/ap22-authnz-external/patches/patch-aa
index 0d4d044a926..e7ec1126a20 100644
--- a/www/ap22-authnz-external/patches/patch-aa
+++ b/www/ap22-authnz-external/patches/patch-aa
@@ -1,22 +1,22 @@
-$NetBSD: patch-aa,v 1.1.1.1 2008/07/29 05:07:46 schmonz Exp $
+$NetBSD: patch-aa,v 1.2 2008/11/12 09:07:56 martti Exp $
---- mod_authnz_external.c.orig 2006-02-17 21:35:15.000000000 -0500
-+++ mod_authnz_external.c
-@@ -92,6 +92,7 @@
+--- mod_authnz_external.c.orig 2008-07-31 22:11:46.000000000 +0300
++++ mod_authnz_external.c 2008-11-12 10:53:39.000000000 +0200
+@@ -90,6 +90,7 @@
#define ENV_PASS "PASS"
#define ENV_GROUP "GROUP"
#define ENV_URI "URI"
+#define ENV_METHOD "METHOD"
#define ENV_IP "IP"
#define ENV_HOST "HOST" /* Remote Host */
- #define ENV_HTTP_HOST "HTTP_HOST" /* Local Host */
-@@ -359,6 +360,9 @@ static int exec_external(const char *ext
+ #define ENV_HTTP_HOST "HTTP_HOST" /* Local Host */
+@@ -446,6 +447,9 @@
if (r->uri)
- child_env[i++]= apr_pstrcat(r->pool, ENV_URI"=", r->uri, NULL);
+ child_env[i++]= apr_pstrcat(p, ENV_URI"=", r->uri, NULL);
+ if (r->method)
+ child_env[i++]= apr_pstrcat(r->pool, ENV_METHOD"=", r->method, NULL);
+
if ((host= apr_table_get(r->headers_in, "Host")) != NULL)
- child_env[i++]= apr_pstrcat(r->pool, ENV_HTTP_HOST"=", host, NULL);
+ child_env[i++]= apr_pstrcat(p, ENV_HTTP_HOST"=", host, NULL);