summaryrefslogtreecommitdiff
path: root/www/ap2-auth-external
diff options
context:
space:
mode:
authorsborrill <sborrill>2007-12-20 14:59:14 +0000
committersborrill <sborrill>2007-12-20 14:59:14 +0000
commit426a9c708271fba6de73613eb7ead7a2cd8ce2f8 (patch)
tree03d919523b5202fe14d10e24ebef3e3fc1a87388 /www/ap2-auth-external
parent7da262a0fc6abaa82e194c54fe31b57910540ba7 (diff)
downloadpkgsrc-426a9c708271fba6de73613eb7ead7a2cd8ce2f8.tar.gz
Import apache 2.x portion after splitting ap-auth-external into 1.x and 2.x.
mod_auth_external allows you to use an external script for Apache authentication.
Diffstat (limited to 'www/ap2-auth-external')
-rw-r--r--www/ap2-auth-external/DESCR20
-rw-r--r--www/ap2-auth-external/MESSAGE9
-rw-r--r--www/ap2-auth-external/Makefile25
-rw-r--r--www/ap2-auth-external/PLIST2
-rw-r--r--www/ap2-auth-external/distinfo9
-rw-r--r--www/ap2-auth-external/patches/patch-aa22
6 files changed, 87 insertions, 0 deletions
diff --git a/www/ap2-auth-external/DESCR b/www/ap2-auth-external/DESCR
new file mode 100644
index 00000000000..0a4e81c24c1
--- /dev/null
+++ b/www/ap2-auth-external/DESCR
@@ -0,0 +1,20 @@
+The Apache HTTP Daemon can be configured to require users to supply logins
+and passwords before accessing pages in some directories. Authentication is
+the process of checking if the password given is correct for a user. Apache
+has standard modules for authenticating out of several different kinds of
+databases. The external authentication module provides a flexible tool for
+creating authentication systems based on other databases.
+
+The module can be used in either of two somewhat divergent ways:
+1) External Authentication:
+
+When a user supplies a login and password, mod_auth*_external runs a program
+you write, passing it the login and password. Your program does whatever
+checking and logging it needs to, and then returns a Accept/Reject flag to
+Apache.
+
+2) Hardcoded Authentication:
+
+Some hooks have been inserted into mod_auth*_external to make it easy to
+replace the call to the external authentication program with a call to a
+hardcoded internal authentication routine that you write.
diff --git a/www/ap2-auth-external/MESSAGE b/www/ap2-auth-external/MESSAGE
new file mode 100644
index 00000000000..a96a9e42b11
--- /dev/null
+++ b/www/ap2-auth-external/MESSAGE
@@ -0,0 +1,9 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2007/12/20 14:59:14 sborrill Exp $
+
+In order to use this module in your Apache installation, you need to
+add the following to your httpd.conf file:
+
+ LoadModule ${MODULE_NAME} lib/httpd/mod_auth_external.so
+
+===========================================================================
diff --git a/www/ap2-auth-external/Makefile b/www/ap2-auth-external/Makefile
new file mode 100644
index 00000000000..7cb7c35c01c
--- /dev/null
+++ b/www/ap2-auth-external/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/12/20 14:59:14 sborrill Exp $
+#
+
+DISTNAME= mod_auth_external-${DISTVERS}
+PKGREVISION= 2
+PKGNAME= ${APACHE_PKG_PREFIX}-auth-external-${DISTVERS}
+CATEGORIES= www
+MASTER_SITES= http://unixpapa.com/software/
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://unixpapa.com/mod_authnz_external/
+COMMENT= Apache module for external program authentication
+
+PKG_APACHE_ACCEPTED= apache2 apache22
+
+.include "../../mk/apache.mk"
+
+APACHE_MODULE_NAME= mod_auth_external.${MODULE_EXT}
+
+DISTVERS= 2.2.11
+MODULE_EXT= la
+MESSAGE_SUBST+= MODULE_NAME=auth_external_module
+
+.include "../../www/apache/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/ap2-auth-external/PLIST b/www/ap2-auth-external/PLIST
new file mode 100644
index 00000000000..f40870fbbb7
--- /dev/null
+++ b/www/ap2-auth-external/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/12/20 14:59:14 sborrill Exp $
+lib/httpd/mod_auth_external.so
diff --git a/www/ap2-auth-external/distinfo b/www/ap2-auth-external/distinfo
new file mode 100644
index 00000000000..ea4f513d45f
--- /dev/null
+++ b/www/ap2-auth-external/distinfo
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/12/20 14:59:14 sborrill Exp $
+
+SHA1 (mod_auth_external-2.1.19.tar.gz) = da2266f93acf82e488e14380157f1acd69198ad9
+RMD160 (mod_auth_external-2.1.19.tar.gz) = f4012119f3e3eca73b07c1f90292338e6256e31a
+Size (mod_auth_external-2.1.19.tar.gz) = 51390 bytes
+SHA1 (mod_auth_external-2.2.11.tar.gz) = da89adcdac611ec8c0f69a79f2edff669210f2a1
+RMD160 (mod_auth_external-2.2.11.tar.gz) = be27183d8049989f64548a5c8dd3cdecc3b3a5e2
+Size (mod_auth_external-2.2.11.tar.gz) = 52542 bytes
+SHA1 (patch-aa) = 7232921601c3e61e70d13cd0bb252eb219de3569
diff --git a/www/ap2-auth-external/patches/patch-aa b/www/ap2-auth-external/patches/patch-aa
new file mode 100644
index 00000000000..8484a49b025
--- /dev/null
+++ b/www/ap2-auth-external/patches/patch-aa
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.1.1.1 2007/12/20 14:59:14 sborrill Exp $
+
+--- mod_auth_external.c.orig 2007-12-19 15:17:29.000000000 +0000
++++ mod_auth_external.c 2007-12-19 15:17:29.000000000 +0000
+@@ -242,6 +242,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 */
+@@ -506,6 +507,9 @@
+ if (r->uri)
+ child_env[i++]= apr_pstrcat(r->pool, ENV_URI"=", r->uri, NULL);
+
++ if (r->method)
++ child_env[i++]= apr_pstrcat(r->pool, ENV_METHOD"=", r->method, NULL);
++
+ if ((host= lookup_header(r,"Host")) != NULL)
+ child_env[i++]= apr_pstrcat(r->pool, ENV_HTTP_HOST"=", host, NULL);
+