pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/ap22-authnz-external Initial import of ap22-authnz...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/73c089837710
branches:  trunk
changeset: 545225:73c089837710
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Tue Jul 29 05:07:46 2008 +0000

description:
Initial import of ap22-authnz-external, based on ap2-auth-external.

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.

diffstat:

 www/ap22-authnz-external/DESCR            |  20 ++++++++++++++++++++
 www/ap22-authnz-external/MESSAGE          |   9 +++++++++
 www/ap22-authnz-external/Makefile         |  24 ++++++++++++++++++++++++
 www/ap22-authnz-external/PLIST            |   2 ++
 www/ap22-authnz-external/distinfo         |   6 ++++++
 www/ap22-authnz-external/patches/patch-aa |  22 ++++++++++++++++++++++
 6 files changed, 83 insertions(+), 0 deletions(-)

diffs (107 lines):

diff -r f1f3f83cc918 -r 73c089837710 www/ap22-authnz-external/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap22-authnz-external/DESCR    Tue Jul 29 05:07:46 2008 +0000
@@ -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 -r f1f3f83cc918 -r 73c089837710 www/ap22-authnz-external/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap22-authnz-external/MESSAGE  Tue Jul 29 05:07:46 2008 +0000
@@ -0,0 +1,9 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2008/07/29 05:07:46 schmonz 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_authnz_external.so
+
+===========================================================================
diff -r f1f3f83cc918 -r 73c089837710 www/ap22-authnz-external/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap22-authnz-external/Makefile Tue Jul 29 05:07:46 2008 +0000
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:07:46 schmonz Exp $
+#
+
+DISTNAME=      mod_authnz_external-${DISTVERS}
+PKGNAME=       ${APACHE_PKG_PREFIX}-authnz-external-${DISTVERS}
+CATEGORIES=    www
+MASTER_SITES=  http://unixpapa.com/software/
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://unixpapa.com/mod_authnz_external/
+COMMENT=       Apache module for external program authentication
+
+PKG_APACHE_ACCEPTED=   apache22
+
+.include "../../mk/apache.mk"
+
+APACHE_MODULE_NAME=    mod_authnz_external.${MODULE_EXT}
+
+DISTVERS=      3.1.0
+MODULE_EXT=    la
+MESSAGE_SUBST+=        MODULE_NAME=authnz_external_module
+
+.include "../../www/apache/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r f1f3f83cc918 -r 73c089837710 www/ap22-authnz-external/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap22-authnz-external/PLIST    Tue Jul 29 05:07:46 2008 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/07/29 05:07:46 schmonz Exp $
+lib/httpd/mod_authnz_external.so
diff -r f1f3f83cc918 -r 73c089837710 www/ap22-authnz-external/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap22-authnz-external/distinfo Tue Jul 29 05:07:46 2008 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/07/29 05:07:46 schmonz Exp $
+
+SHA1 (mod_authnz_external-3.1.0.tar.gz) = 0b699abaeaf693edad8f1b7435cab77d28af0bec
+RMD160 (mod_authnz_external-3.1.0.tar.gz) = 380398a58b06ba3352f1ff0dc7758dba6d455327
+Size (mod_authnz_external-3.1.0.tar.gz) = 171832 bytes
+SHA1 (patch-aa) = a40c483acc3eed629bb0d487778ad6ce9f819ae7
diff -r f1f3f83cc918 -r 73c089837710 www/ap22-authnz-external/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap22-authnz-external/patches/patch-aa Tue Jul 29 05:07:46 2008 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.1.1.1 2008/07/29 05:07:46 schmonz Exp $
+
+--- mod_authnz_external.c.orig 2006-02-17 21:35:15.000000000 -0500
++++ mod_authnz_external.c
+@@ -92,6 +92,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
+       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= apr_table_get(r->headers_in, "Host")) != NULL)
+           child_env[i++]= apr_pstrcat(r->pool, ENV_HTTP_HOST"=", host, NULL);
+ 



Home | Main Index | Thread Index | Old Index