diff options
author | rh <rh> | 2000-10-21 18:47:46 +0000 |
---|---|---|
committer | rh <rh> | 2000-10-21 18:47:46 +0000 |
commit | 634f208c4bd0424225bd6325dbdfc4d75f73252d (patch) | |
tree | d0d75d6699166053c8c1138ab25e0b5a0f2b0f82 /security | |
parent | b4452e31bc286078cf435e225f7a6b85ae7ac4da (diff) | |
download | pkgsrc-634f208c4bd0424225bd6325dbdfc4d75f73252d.tar.gz |
Initial import of pam-ldap-77, a pluggable authentication module for
LDAP directories
Diffstat (limited to 'security')
-rw-r--r-- | security/pam-ldap/Makefile | 37 | ||||
-rw-r--r-- | security/pam-ldap/files/md5 | 3 | ||||
-rw-r--r-- | security/pam-ldap/files/patch-sum | 4 | ||||
-rw-r--r-- | security/pam-ldap/patches/patch-aa | 33 | ||||
-rw-r--r-- | security/pam-ldap/patches/patch-ab | 31 | ||||
-rw-r--r-- | security/pam-ldap/pkg/COMMENT | 1 | ||||
-rw-r--r-- | security/pam-ldap/pkg/DESCR | 15 | ||||
-rw-r--r-- | security/pam-ldap/pkg/PLIST | 8 |
8 files changed, 132 insertions, 0 deletions
diff --git a/security/pam-ldap/Makefile b/security/pam-ldap/Makefile new file mode 100644 index 00000000000..54f22263b8d --- /dev/null +++ b/security/pam-ldap/Makefile @@ -0,0 +1,37 @@ +# $NetBSD: Makefile,v 1.1.1.1 2000/10/21 18:47:46 rh Exp $ +# + +DISTNAME= pam_ldap +PKGNAME= ${DISTNAME:S/_/-/}-${VERSION} +WRKSRC= ${WRKDIR}/${DISTNAME}-${VERSION} +CATEGORIES= security +MASTER_SITES= http://www.padl.com/download/ \ + ftp://ftp.padl.com/pub/ +EXTRACT_SUFX= .tgz + +MAINTAINER= rh@netbsd.org +HOMEPAGE= http://www.padl.com/pam_ldap.html + +DEPENDS+= openldap-*:../../databases/openldap +DEPENDS+= PAM-*:../../security/PAM + +GNU_CONFIGURE= YES +CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -I${WRKSRC}" +CONFIGURE_ARGS+=--with-ldap-lib=openldap +CONFIGURE_ARGS+=--with-ldap-dir=${PREFIX} +INSTALL_TARGET= install install-data + +VERSION= 77 + +post-configure: # prevent starting of autoconf +.for file in aclocal.m4 Makefile.in Makefile stamp-h.in stamp-h + cd ${WRKSRC} && ${TOUCH} ${file} +.endfor + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pam-ldap +.for doc in COPYING COPYING.LIB INSTALL ChangeLog + cd ${WRKSRC} && ${INSTALL_DATA} ${doc} ${PREFIX}/share/doc/pam-ldap +.endfor + +.include "../../mk/bsd.pkg.mk" diff --git a/security/pam-ldap/files/md5 b/security/pam-ldap/files/md5 new file mode 100644 index 00000000000..db804abe21a --- /dev/null +++ b/security/pam-ldap/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 2000/10/21 18:47:46 rh Exp $ + +MD5 (pam_ldap.tgz) = 071b4921e71e868274e71db08578ed46 diff --git a/security/pam-ldap/files/patch-sum b/security/pam-ldap/files/patch-sum new file mode 100644 index 00000000000..1f837e89003 --- /dev/null +++ b/security/pam-ldap/files/patch-sum @@ -0,0 +1,4 @@ +$NetBSD: patch-sum,v 1.1.1.1 2000/10/21 18:47:46 rh Exp $ + +MD5 (patch-aa) = eafec5a4d2259e9a77b95d914a8761bd +MD5 (patch-ab) = 6a9d6a3bfe5ed21b0c923e379b6e66b7 diff --git a/security/pam-ldap/patches/patch-aa b/security/pam-ldap/patches/patch-aa new file mode 100644 index 00000000000..5375ce59789 --- /dev/null +++ b/security/pam-ldap/patches/patch-aa @@ -0,0 +1,33 @@ +$NetBSD: patch-aa,v 1.1.1.1 2000/10/21 18:47:46 rh Exp $ + +--- Makefile.in.orig Thu Oct 12 23:25:50 2000 ++++ Makefile.in +@@ -83,7 +83,7 @@ + + + DEFS = @DEFS@ -I. -I$(srcdir) -I. +-CPPFLAGS = @CPPFLAGS@ ++CPPFLAGS = @CPPFLAGS@ -DETCPAMDIR=\"${PREFIX}/etc/pam\" + LDFLAGS = @LDFLAGS@ + LIBS = @LIBS@ + pam_ldap_so_OBJECTS = pam_ldap.o md5.o +@@ -380,17 +380,11 @@ + 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 ++ ${BSD_INSTALL_PROGRAM} pam_ldap.so ${DESTDIR}${libdir}/security/pam_ldap.so + + install-data-local: + @$(NORMAL_INSTALL) +- @if test ! -f $(DESTDIR)$(etcdir)/ldap.conf; then \ +- $(mkinstalldirs) $(DESTDIR)$(etcdir); \ +- $(INSTALL_DATA) -o root -g root $(srcdir)/ldap.conf $(DESTDIR)$(etcdir)/ldap.conf; \ +- fi ++ ${BSD_INSTALL_DATA} $(srcdir)/ldap.conf ${PREFIX}/etc/pam/ldap.conf; + + uninstall-local: + @$(NORMAL_UNINSTALL) diff --git a/security/pam-ldap/patches/patch-ab b/security/pam-ldap/patches/patch-ab new file mode 100644 index 00000000000..18d7f49ef16 --- /dev/null +++ b/security/pam-ldap/patches/patch-ab @@ -0,0 +1,31 @@ +$NetBSD: patch-ab,v 1.1.1.1 2000/10/21 18:47:46 rh Exp $ + +--- pam_ldap.c.orig Sat Oct 21 18:19:15 2000 ++++ pam_ldap.c +@@ -533,7 +533,7 @@ + + result = *presult; + +- fp = fopen ("/etc/ldap.conf", "r"); ++ fp = fopen (ETCPAMDIR "/ldap.conf", "r"); + if (fp == NULL) + { + /* +@@ -722,7 +722,7 @@ + + if (result->rootbinddn != NULL) + { +- fp = fopen ("/etc/ldap.secret", "r"); ++ fp = fopen (ETCPAMDIR "/ldap.secret", "r"); + if (fp != NULL) + { + if (fgets (b, sizeof (b), fp) != NULL) +@@ -741,7 +741,7 @@ + { + _pam_drop (result->rootbinddn); + syslog (LOG_WARNING, +- "pam_ldap: could not open secret file /etc/ldap.secret (%s)", ++ "pam_ldap: could not open secret file " ETCPAMDIR "/ldap.secret (%s)", + strerror (errno)); + } + } diff --git a/security/pam-ldap/pkg/COMMENT b/security/pam-ldap/pkg/COMMENT new file mode 100644 index 00000000000..160df917464 --- /dev/null +++ b/security/pam-ldap/pkg/COMMENT @@ -0,0 +1 @@ +pluggable authentication module for LDAP directories diff --git a/security/pam-ldap/pkg/DESCR b/security/pam-ldap/pkg/DESCR new file mode 100644 index 00000000000..1695cb7d4a7 --- /dev/null +++ b/security/pam-ldap/pkg/DESCR @@ -0,0 +1,15 @@ + The pam_ldap module provides the means for workstations to authenticate +against LDAP directories, and to change their passwords in the directory. +Key Benefits are: + + * Uses the Pluggable Authentication Module API defined in OSF DCE RFC 86.0. + * Can utilize transport layer security (such as SSL or TLS) to encrypt + transactions between the workstation and the LDAP server and provide + strongly authenticated sign-on. + * Shares configuration information with nss_ldap module + * Supports ypldapd locator for finding LDAP servers + * Supports Netscape Directory Server's password policies and directory-based + access authorization. + + The software is distributed under the terms of the GNU General Library +Public License. diff --git a/security/pam-ldap/pkg/PLIST b/security/pam-ldap/pkg/PLIST new file mode 100644 index 00000000000..4428f0af276 --- /dev/null +++ b/security/pam-ldap/pkg/PLIST @@ -0,0 +1,8 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2000/10/21 18:47:46 rh Exp $ +etc/pam/ldap.conf +lib/security/pam_ldap.so +share/doc/pam-ldap/COPYING +share/doc/pam-ldap/COPYING.LIB +share/doc/pam-ldap/ChangeLog +share/doc/pam-ldap/INSTALL +@dirrm share/doc/pam-ldap |