pkgsrc/www/ap-auth-external/patches/patch-aa
sborrill 64a746545e Add support for passing through METHOD to the authenticator which allows you
to grant read-only or write access to WebDAV directories.
2007-11-02 15:06:26 +00:00

22 lines
749 B
Text

$NetBSD: patch-aa,v 1.1 2007/11/02 15:06:26 sborrill Exp $
--- mod_auth_external.c.orig 2003-10-23 15:20:45.000000000 +0100
+++ mod_auth_external.c 2007-07-16 15:28:19.000000000 +0100
@@ -227,6 +227,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 */
@@ -485,6 +486,9 @@
if (r->uri)
child_env[i++]= ap_pstrcat(r->pool, ENV_URI"=", r->uri, NULL);
+ if (r->method)
+ child_env[i++]= ap_pstrcat(r->pool, ENV_METHOD"=", r->method, NULL);
+
if ((host= lookup_header(r,"Host")) != NULL)
child_env[i++]= ap_pstrcat(r->pool, ENV_HTTP_HOST"=", host, NULL);