1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Add mod_auth_pam 1.0a, an apache module which allows users to use PAM

modules for user authentication.

PR:		26301
Submitted by:	Anders Nordby <anders@fix.no>
This commit is contained in:
Will Andrews 2001-04-07 04:25:18 +00:00
parent 7ba4e0aa2b
commit de03b285db
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=40991
8 changed files with 110 additions and 0 deletions

View File

@ -110,6 +110,7 @@
SUBDIR += mnoGoSearch-current
SUBDIR += mod_access_referer
SUBDIR += mod_auth_mysql
SUBDIR += mod_auth_pam
SUBDIR += mod_auth_pgsql
SUBDIR += mod_csacek
SUBDIR += mod_dav

37
www/mod_auth_pam/Makefile Normal file
View File

@ -0,0 +1,37 @@
# New ports collection makefile for: mod_auth_pam
# Date created: 2 April 2001
# Whom: Anders Nordby <anders@fix.no>
#
# $FreeBSD$
#
PORTNAME= mod_auth_pam
PORTVERSION= 1.0a
CATEGORIES= www
MASTER_SITES= http://pam.sourceforge.net/mod_auth_pam/dist/ \
http://www.freenix.no/~anders/
MAINTAINER= anders@fix.no
BUILD_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13
RUN_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13
APXS?= ${LOCALBASE}/sbin/apxs
do-build:
@cd ${WRKSRC} && \
${APXS} -c -lpam mod_auth_pam.c
do-install:
${APXS} -i -A -n auth_pam ${WRKSRC}/mod_auth_pam.so
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/mod_auth_pam
${MKDIR} ${PREFIX}/share/doc/mod_auth_pam/samples
${INSTALL_DATA} ${WRKSRC}/doc/configure.html ${PREFIX}/share/doc/mod_auth_pam/
${INSTALL_DATA} ${WRKSRC}/doc/faq.html ${PREFIX}/share/doc/mod_auth_pam/
${INSTALL_DATA} ${WRKSRC}/samples/dot-htaccess ${PREFIX}/share/doc/mod_auth_pam/samples/
${INSTALL_DATA} ${WRKSRC}/samples/httpd ${PREFIX}/share/doc/mod_auth_pam/samples/
.endif
${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (mod_auth_pam-1.0a.tar.gz) = 9e971e974de3bef0587f114694d04e47

View File

@ -0,0 +1,38 @@
--- mod_auth_pam.c.orig Sun Feb 13 23:16:57 2000
+++ mod_auth_pam.c Mon Apr 2 22:20:44 2001
@@ -113,7 +113,7 @@
#define PAM_STRE_NEEDS_PAMH 1
#define VERSION "1.0a"
-module pam_auth_module;
+module auth_pam_module;
static const char
*pam_servicename = "httpd",
@@ -362,7 +362,7 @@
/* mod_auth_pam specific */
auth_pam_userinfo userinfo = { NULL, NULL };
auth_pam_dir_config *conf = (auth_pam_dir_config*)
- ap_get_module_config(r->per_dir_config, &pam_auth_module);
+ ap_get_module_config(r->per_dir_config, &auth_pam_module);
/* PAM specific */
struct pam_conv conv_info = { &auth_pam_talker, (void*)&userinfo};
pam_handle_t *pamh = NULL;
@@ -442,7 +442,7 @@
char method_restricted = 0, *line = 0, *word = 0;
table *groups = 0;
auth_pam_dir_config *conf = (auth_pam_dir_config*)
- ap_get_module_config(r->per_dir_config, &pam_auth_module);
+ ap_get_module_config(r->per_dir_config, &auth_pam_module);
/* check for allowed users/group */
const array_header *reqs_arr = ap_requires (r);
@@ -505,7 +505,7 @@
return AUTH_REQUIRED;
}
-module pam_auth_module = {
+module auth_pam_module = {
STANDARD_MODULE_STUFF,
auth_pam_init, /* initializer */
create_auth_pam_dir_config, /* dir config creater */

View File

@ -0,0 +1 @@
Allows users to use PAM modules for user authentication

View File

@ -0,0 +1,8 @@
The PAM authentication module implements Basic authentication on top of the
Pluggable Authentication Module library. Thereby it supports whatever
authentication method your PAM subsystem has specific support installed &
configured for.
WWW: http://pam.sourceforge.net/mod_auth_pam/
- Anders Nordby <anders@fix.no>

View File

@ -0,0 +1,15 @@
************************************************************
You've installed mod_auth_pam, a PAM authentication module
for Apache.
Edit your apache.conf or httpd.conf to enable and setup this
module. Have a look at the files in
${PREFIX}/share/doc/mod_auth_pam for information on how to
to configure it etc.
Then do this to make it work effective:
# apachectl configtest (see if there are any config errors)
# apachectl restart
************************************************************

View File

@ -0,0 +1,9 @@
libexec/apache/mod_auth_pam.so
@exec %D/sbin/apxs -e -A -n auth_pam %D/%F
@unexec %D/sbin/apxs -e -A -n auth_pam %D/%F
%%PORTDOCS%%share/doc/mod_auth_pam/configure.html
%%PORTDOCS%%share/doc/mod_auth_pam/faq.html
%%PORTDOCS%%share/doc/mod_auth_pam/samples/dot-htaccess
%%PORTDOCS%%share/doc/mod_auth_pam/samples/httpd
%%PORTDOCS%%@dirrm share/doc/mod_auth_pam/samples
%%PORTDOCS%%@dirrm share/doc/mod_auth_pam