summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonny Davies <woodchip@gentoo.org>2002-11-28 20:34:47 +0000
committerDonny Davies <woodchip@gentoo.org>2002-11-28 20:34:47 +0000
commit7eba6dba58d33500e18b9d0b1e2362b757a76459 (patch)
treeadd73700f1963ae7c1cd34a7f1b2bea569ceb44b /net-www/mod_auth_external
parentupdated layout (diff)
downloadhistorical-7eba6dba58d33500e18b9d0b1e2362b757a76459.tar.gz
historical-7eba6dba58d33500e18b9d0b1e2362b757a76459.tar.bz2
historical-7eba6dba58d33500e18b9d0b1e2362b757a76459.zip
new Apache2 module
Diffstat (limited to 'net-www/mod_auth_external')
-rw-r--r--net-www/mod_auth_external/ChangeLog8
-rw-r--r--net-www/mod_auth_external/files/10_mod_auth_external.conf44
-rw-r--r--net-www/mod_auth_external/files/digest-mod_auth_external-2.2.32
-rw-r--r--net-www/mod_auth_external/files/pwauth.pam7
-rw-r--r--net-www/mod_auth_external/mod_auth_external-2.2.3.ebuild52
5 files changed, 113 insertions, 0 deletions
diff --git a/net-www/mod_auth_external/ChangeLog b/net-www/mod_auth_external/ChangeLog
new file mode 100644
index 000000000000..e34a7443c53b
--- /dev/null
+++ b/net-www/mod_auth_external/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for net-www/mod_auth_external
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
+# $Header: /var/cvsroot/gentoo-x86/net-www/mod_auth_external/ChangeLog,v 1.1 2002/11/28 20:29:03 woodchip Exp $
+
+*auth_external-2.2.3 (28 Nov 2002)
+
+ 28 Nov 2002; Donny Davies <woodchip@gentoo.org> :
+ Initial import; created by me.
diff --git a/net-www/mod_auth_external/files/10_mod_auth_external.conf b/net-www/mod_auth_external/files/10_mod_auth_external.conf
new file mode 100644
index 000000000000..701db9261fb2
--- /dev/null
+++ b/net-www/mod_auth_external/files/10_mod_auth_external.conf
@@ -0,0 +1,44 @@
+<IfDefine AUTH_EXTERNAL>
+ <IfModule !mod_auth_external.c>
+ LoadModule external_auth_module extramodules/mod_auth_external.so
+ </IfModule>
+</IfDefine>
+
+<IfModule mod_auth_external.c>
+
+AddExternalAuth pwauth extramodules/pwauth
+SetExternalAuthMethod pwauth pipe
+
+# For external group check
+# AddExternalGroup unixgroup modules/unixgroup
+# SetExternalGroupMethod unixgroup environment
+
+# Put an .htaccess file in whatever directory you want to protect.
+# (For .htaccess files to work, you may need to change some
+# "AllowOverride None" directives in your httpd.conf file into
+# "AllowOverride AuthConfig" directives).
+#
+# A typical .htaccess file would look like:
+#
+# AuthName Your-Site-Name
+# AuthType Basic
+# AuthExternal pwauth
+# require valid-user
+# or
+# require user1
+#
+# GroupExternal unixgroup
+# AuthGroupFile /dev/null
+# require group <groupname1> <groupname2> ...
+#
+# Alternately, you can put a <Directory> block with the same directives
+# in your httpd.conf file.
+#
+# Note1: Using group method, don't forget to add users in the authorized group
+# group files
+# somegroup:x:500:user1,user2,user3
+#
+#
+# - samples from pwauth/INSTALL
+
+</IfModule>
diff --git a/net-www/mod_auth_external/files/digest-mod_auth_external-2.2.3 b/net-www/mod_auth_external/files/digest-mod_auth_external-2.2.3
new file mode 100644
index 000000000000..c955b5d85e6d
--- /dev/null
+++ b/net-www/mod_auth_external/files/digest-mod_auth_external-2.2.3
@@ -0,0 +1,2 @@
+MD5 01e16b38fe80a3885329929fc03998c7 mod_auth_external-2.2.3.tar.gz 63269
+MD5 6822a6d188c308dc2722b55d4dd5a233 mod_auth_external-2.2.3-gentoo.diff.bz2 1475
diff --git a/net-www/mod_auth_external/files/pwauth.pam b/net-www/mod_auth_external/files/pwauth.pam
new file mode 100644
index 000000000000..1d2e081625f1
--- /dev/null
+++ b/net-www/mod_auth_external/files/pwauth.pam
@@ -0,0 +1,7 @@
+#%PAM-1.0
+auth required /lib/security/pam_stack.so service=system-auth
+auth required /lib/security/pam_nologin.so
+account required /lib/security/pam_stack.so service=system-auth
+password required /lib/security/pam_stack.so service=system-auth
+session required /lib/security/pam_stack.so service=system-auth
+session optional /lib/security/pam_console.so
diff --git a/net-www/mod_auth_external/mod_auth_external-2.2.3.ebuild b/net-www/mod_auth_external/mod_auth_external-2.2.3.ebuild
new file mode 100644
index 000000000000..52ce273bd970
--- /dev/null
+++ b/net-www/mod_auth_external/mod_auth_external-2.2.3.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/mod_auth_external/mod_auth_external-2.2.3.ebuild,v 1.1 2002/11/28 20:29:03 woodchip Exp $
+
+inherit eutils
+
+DESCRIPTION="An Apache2 authentication DSO using external programs"
+HOMEPAGE="http://www.unixpapa.com/mod_auth_external.html"
+
+S=${WORKDIR}/${P}
+SRC_URI="http://www.unixpapa.com/software/${P}.tar.gz
+ mirror://gentoo/${P}-gentoo.diff.bz2"
+DEPEND="sys-libs/pam =net-www/apache-2*"
+LICENSE="Apache-1.1"
+KEYWORDS="~x86"
+IUSE=""
+SLOT="0"
+
+src_unpack() {
+ unpack ${A} || die; cd ${S} || die; epatch ../${P}-gentoo.diff
+}
+
+src_compile() {
+ apxs2 -c ${PN}.c || die
+ cd pwauth; emake LIB="-lpam -ldl" || die
+}
+
+src_install() {
+ exeinto /usr/lib/apache2-extramodules
+ doexe .libs/${PN}.so pwauth/unixgroup pwauth/pwauth
+ insinto /etc/apache2/conf/modules.d
+ doins ${FILESDIR}/10_mod_auth_external.conf
+ insinto /etc/pam.d
+ newins ${FILESDIR}/pwauth.pam pwauth
+ newins ${FILESDIR}/pwauth.pam unixgroup
+
+ dodoc AUTHENTICATORS CHANGES INSTALL INSTALL.HARDCODE README TODO
+ docinto mysql; dodoc mysql/*
+ docinto pwauth; dodoc pwauth/{FORM_AUTH,INSTALL,README}
+ docinto radius; dodoc radius/{CHANGES,README}
+ docinto sybase; dodoc sybase/README
+ docinto test; dodoc test/*
+ dodoc ${FILESDIR}/10_mod_auth_external.conf
+
+ #protect these programs
+ local gid=`grep ^apache: /etc/group |cut -d: -f3`
+ [ -z "${gid}" ] && gid=81
+ fowners root.${gid} /usr/lib/apache2-extramodules/unixgroup
+ fowners root.${gid} /usr/lib/apache2-extramodules/pwauth
+ fperms 4710 /usr/lib/apache2-extramodules/unixgroup
+ fperms 4710 /usr/lib/apache2-extramodules/pwauth
+}