mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
New pam port for ldap authentication.
PR: 27673 Submitted by: Joe Marcus Clarke <marcus@marcuscom.com> Reviewed by: will
This commit is contained in:
parent
dd045ae32e
commit
79e438a6a5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=43660
@ -117,6 +117,7 @@
|
||||
SUBDIR += pam-mysql
|
||||
SUBDIR += pam-pgsql
|
||||
SUBDIR += pam_krb5
|
||||
SUBDIR += pam_ldap
|
||||
SUBDIR += pam_ssh
|
||||
SUBDIR += pgp
|
||||
SUBDIR += pgp5
|
||||
|
44
security/pam_ldap/Makefile
Normal file
44
security/pam_ldap/Makefile
Normal file
@ -0,0 +1,44 @@
|
||||
# New ports collection makefile for: pam_ldap
|
||||
# Date created: 26 May 2001
|
||||
# Whom: Joe Clarke <marcus@marcuscom.com>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= pam_ldap
|
||||
PORTVERSION= 1.1.3
|
||||
CATEGORIES= security net
|
||||
MASTER_SITES= http://www.padl.com/download/ \
|
||||
ftp://ftp.padl.com/pub/
|
||||
DISTNAME= pam_ldap
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
MAINTAINER= marcus@marcuscom.com
|
||||
|
||||
.if defined(WITH_LDAP_V3)
|
||||
LIB_DEPENDS= ldap.2:${PORTSDIR}/net/openldap2 \
|
||||
lber.2:${PORTSDIR}/net/openldap2
|
||||
.else
|
||||
LIB_DEPENDS= ldap.1:${PORTSDIR}/net/openldap \
|
||||
lber.1:${PORTSDIR}/net/openldap
|
||||
.endif
|
||||
|
||||
USE_AUTOCONF= yes
|
||||
CONFIGURE_ARGS= --with-ldap-lib=openldap \
|
||||
--with-ldap-dir=${LOCALBASE}
|
||||
|
||||
USE_GMAKE= yes
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/.//g}
|
||||
|
||||
post-install:
|
||||
@${ECHO} "================================================================================"
|
||||
@${ECHO} "Copy/move/symlink ${PREFIX}/etc/pam_ldap/ldap.conf.dist to"
|
||||
@${ECHO} "${PREFIX}/etc/pam_ldap/ldap.conf to be able to use it."
|
||||
@${ECHO} "Add lines like the following to /etc/pam.conf"
|
||||
@${ECHO} "to get things going:"
|
||||
@${ECHO} ""
|
||||
@${ECHO} "login auth sufficient ${PREFIX}/lib/pam_ldap.so"
|
||||
@${ECHO} "================================================================================"
|
||||
|
||||
.include <bsd.port.mk>
|
1
security/pam_ldap/distinfo
Normal file
1
security/pam_ldap/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (pam_ldap.tgz) = 9eaa7032079e4edb16e222873feab297
|
25
security/pam_ldap/files/patch-aa
Normal file
25
security/pam_ldap/files/patch-aa
Normal file
@ -0,0 +1,25 @@
|
||||
--- Makefile.in.orig Sat May 26 16:07:21 2001
|
||||
+++ Makefile.in Sat May 26 17:09:57 2001
|
||||
@@ -380,17 +380,15 @@
|
||||
|
||||
install-exec-local: pam_ldap.so
|
||||
@$(NORMAL_INSTALL)
|
||||
- $(mkinstalldirs) $(DESTDIR)$(libdir)/security
|
||||
-@EXTENSION_SO_TRUE@ $(INSTALL_PROGRAM) -o root -g root pam_ldap.so $(DESTDIR)$(libdir)/security/pam_ldap.so
|
||||
-@EXTENSION_SO_FALSE@ $(INSTALL_PROGRAM) -o root -g root pam_ldap.so $(DESTDIR)$(libdir)/security/pam_ldap.so.1
|
||||
-@EXTENSION_SO_FALSE@ -rm -f $(DESTDIR)$(libdir)/security/pam_ldap.so
|
||||
-@EXTENSION_SO_FALSE@ -ln -s $(DESTDIR)$(libdir)/security/pam_ldap.so.1 $(DESTDIR)$(libdir)/security/pam_ldap.so
|
||||
+ $(mkinstalldirs) $(DESTDIR)$(libdir)
|
||||
+@EXTENSION_SO_TRUE@ $(INSTALL_PROGRAM) -o root -g wheel pam_ldap.so $(DESTDIR)$(libdir)/pam_ldap.so
|
||||
+@EXTENSION_SO_FALSE@ $(INSTALL_PROGRAM) -o root -g wheel pam_ldap.so $(DESTDIR)$(libdir)/pam_ldap.so
|
||||
|
||||
install-data-local:
|
||||
@$(NORMAL_INSTALL)
|
||||
- @if test ! -f $(DESTDIR)$(sysconfdir)/ldap.conf; then \
|
||||
+ @if test ! -f $(DESTDIR)$(sysconfdir)/ldap.conf.dist; then \
|
||||
$(mkinstalldirs) $(DESTDIR)$(sysconfdir); \
|
||||
- $(INSTALL_DATA) -o root -g root $(srcdir)/ldap.conf $(DESTDIR)$(sysconfdir)/ldap.conf; \
|
||||
+ $(INSTALL_DATA) -o root -g wheel $(srcdir)/ldap.conf $(DESTDIR)$(sysconfdir)/ldap.conf.dist; \
|
||||
fi
|
||||
|
||||
uninstall-local:
|
11
security/pam_ldap/files/patch-ab
Normal file
11
security/pam_ldap/files/patch-ab
Normal file
@ -0,0 +1,11 @@
|
||||
--- pam_ldap.c.orig Sat May 26 16:06:17 2001
|
||||
+++ pam_ldap.c Sat May 26 16:07:05 2001
|
||||
@@ -551,7 +551,7 @@
|
||||
|
||||
/* configuration file location is configurable; default /etc/ldap.conf */
|
||||
if (configFile == NULL)
|
||||
- configFile = "/etc/ldap.conf";
|
||||
+ configFile = "/usr/local/etc/pam_ldap/ldap.conf";
|
||||
|
||||
fp = fopen (configFile, "r");
|
||||
|
26
security/pam_ldap/files/patch-ac
Normal file
26
security/pam_ldap/files/patch-ac
Normal file
@ -0,0 +1,26 @@
|
||||
--- Makefile.am.orig Sat May 26 17:13:48 2001
|
||||
+++ Makefile.am Sat May 26 17:20:03 2001
|
||||
@@ -8,20 +8,13 @@
|
||||
|
||||
install-exec-local: pam_ldap.so
|
||||
@$(NORMAL_INSTALL)
|
||||
- $(mkinstalldirs) $(DESTDIR)$(libdir)/security
|
||||
-if EXTENSION_SO
|
||||
- $(INSTALL_PROGRAM) -o root -g root pam_ldap.so $(DESTDIR)$(libdir)/security/pam_ldap.so
|
||||
-else
|
||||
- $(INSTALL_PROGRAM) -o root -g root pam_ldap.so $(DESTDIR)$(libdir)/security/pam_ldap.so.1
|
||||
- -rm -f $(DESTDIR)$(libdir)/security/pam_ldap.so
|
||||
- -ln -s $(DESTDIR)$(libdir)/security/pam_ldap.so.1 $(DESTDIR)$(libdir)/security/pam_ldap.so
|
||||
-endif
|
||||
+ $(INSTALL_PROGRAM) -o root -g wheel pam_ldap.so $(DESTDIR)$(libdir)/pam_ldap.so
|
||||
|
||||
install-data-local:
|
||||
@$(NORMAL_INSTALL)
|
||||
- @if test ! -f $(DESTDIR)$(sysconfdir)/ldap.conf; then \
|
||||
+ @if test ! -f $(DESTDIR)$(sysconfdir)/ldap.conf.dist; then \
|
||||
$(mkinstalldirs) $(DESTDIR)$(sysconfdir); \
|
||||
- $(INSTALL_DATA) -o root -g root $(srcdir)/ldap.conf $(DESTDIR)$(sysconfdir)/ldap.conf; \
|
||||
+ $(INSTALL_DATA) -o root -g wheel $(srcdir)/ldap.conf $(DESTDIR)$(sysconfdir)/ldap.conf.dist; \
|
||||
fi
|
||||
|
||||
uninstall-local:
|
1
security/pam_ldap/pkg-comment
Normal file
1
security/pam_ldap/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
A pam module for authenticating with LDAP
|
3
security/pam_ldap/pkg-descr
Normal file
3
security/pam_ldap/pkg-descr
Normal file
@ -0,0 +1,3 @@
|
||||
This is a PAM module for authenticating with LDAP.
|
||||
|
||||
WWW: http://www.padl.com/pam_ldap.html
|
2
security/pam_ldap/pkg-plist
Normal file
2
security/pam_ldap/pkg-plist
Normal file
@ -0,0 +1,2 @@
|
||||
lib/pam_ldap.so
|
||||
etc/ldap.conf.dist
|
Loading…
Reference in New Issue
Block a user