Skip to contentSkip to conversation

package/nss-pam-ldapd: new package

PATCH New Doug Kehn 2 participants 2 messages May 24, 2015 – Nov 30, 2015

lore
Share & tools
lore

Doug Kehn

author
#0 lore raw

PATCH v2 1/1 package/nss-pam-ldapd: new package

Name Service Switch (NSS) module that allows your LDAP server to provide user account, group, host name, alias, netgroup, and basically any other information that you would normally get from /etc flat files or NIS. It also provides a Pluggable Authentication Module (PAM) to do authentication to an LDAP server.

---
Changes v1 -> v2
- Incorporate feedback/suggestions by Yann.

 package/Config.in                        |  1 +
 package/nss-pam-ldapd/Config.in          | 25 +++++++++++++++++
 package/nss-pam-ldapd/S45nslcd           | 25 +++++++++++++++++
 package/nss-pam-ldapd/nslcd.service      | 11 ++++++++
 package/nss-pam-ldapd/nss-pam-ldapd.hash |  4 +++
 package/nss-pam-ldapd/nss-pam-ldapd.mk   | 46 ++++++++++++++++++++++++++++++++
 6 files changed, 112 insertions(+)
 create mode 100644 package/nss-pam-ldapd/Config.in
 create mode 100644 package/nss-pam-ldapd/S45nslcd
 create mode 100644 package/nss-pam-ldapd/nslcd.service
 create mode 100644 package/nss-pam-ldapd/nss-pam-ldapd.hash
 create mode 100644 package/nss-pam-ldapd/nss-pam-ldapd.mk
package/Config.in +1 -0
index e0c2e2a..1035cab 100644
@@ -981,6 +981,7 @@ menu "Networking"
 	source "package/libwebsockets/Config.in"
 	source "package/neon/Config.in"
 	source "package/nss-mdns/Config.in"
+	source "package/nss-pam-ldapd/Config.in"
 	source "package/omniorb/Config.in"
 	source "package/openldap/Config.in"
 	source "package/openpgm/Config.in"
package/nss-pam-ldapd/Config.in new file +25 -0
new file mode 100644
index 0000000..da6d331
@@ -0,0 +1,25 @@
+config BR2_PACKAGE_NSS_PAM_LDAPD
+	bool "nss-pam-ldapd"
+	depends on BR2_TOOLCHAIN_USES_GLIBC
+	select BR2_PACKAGE_OPENLDAP
+	help
+	  Name Service Switch (NSS) module that allows your LDAP
+	  server to provide user account, group, host name, alias,
+	  netgroup, and basically any other information that you would
+	  normally get from /etc flat files or NIS. It also provides a
+	  Pluggable Authentication Module (PAM) to do authentication
+	  to an LDAP server.
+
+	  http://arthurdejong.org/nss-pam-ldapd/
+
+if BR2_PACKAGE_NSS_PAM_LDAPD
+
+config BR2_PACKAGE_NSS_PAM_LDAPD_UTILITIES
+	bool "nss-pam-ldapd utilities"
+	help
+	  Build/Install command-line utilities.
+
+endif
+
+comment "nss-pam-ldapd needs an (e)glibc toolchain"
+	depends on !BR2_TOOLCHAIN_USES_GLIBC
package/nss-pam-ldapd/S45nslcd new file +25 -0
new file mode 100644
index 0000000..cd3e4d0
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+NAME="nslcd"
+DAEMON="/usr/sbin/${NAME}"
+
+case "$1" in
+start)
+        echo -n "Starting ${NAME}: "
+        start-stop-daemon -S -x ${DAEMON}
+        [ $? -eq 0 ] && echo "OK" || echo "FAIL"
+        ;;
+stop)
+        echo -n "Stopping ${NAME}: "
+        start-stop-daemon -K -x ${DAEMON}
+        [ $? -eq 0 ] && echo "OK" || echo "FAIL"
+        ;;
+restart|reload)
+        $0 stop
+        $0 start
+        ;;
+*)
+        echo "Usage: $0 {start|stop|restart|reload}"
+        exit 1
+esac
+
package/nss-pam-ldapd/nslcd.service new file +11 -0
new file mode 100644
index 0000000..d7854d8
@@ -0,0 +1,11 @@
+[Unit]
+Description=Naming services LDAP client daemon.
+After=syslog.target network.target 
+
+[Service]
+Type=forking
+PIDFile=/var/run/nslcd/nslcd.pid
+ExecStart=/usr/sbin/nslcd
+
+[Install]
+WantedBy=multi-user.target
package/nss-pam-ldapd/nss-pam-ldapd.hash new file +4 -0
new file mode 100644
index 0000000..b43b3d0
@@ -0,0 +1,4 @@
+# From http://arthurdejong.org/nss-pam-ldapd/nss-pam-ldapd-0.9.5.tar.gz.md5
+md5	1f0517d2c46ca1d8ecdbe23a671edc83	nss-pam-ldapd-0.9.5.tar.gz
+# Locally computed:
+sha256	49080058d85f60213c1b661a899ffe44e30770b5034e5a6ce48486a8d92bee6c	nss-pam-ldapd-0.9.5.tar.gz
package/nss-pam-ldapd/nss-pam-ldapd.mk new file +46 -0

46 lines not on this page · raw message

Signature · 1 line
2.4.1
#1 lore raw

PATCH v2 1/1 package/nss-pam-ldapd: new package

Dear Doug Kehn,

Quoted 10 lines · Doug Kehn

Name Service Switch (NSS) module that allows your LDAP server to provide user account, group, host name, alias, netgroup, and basically any other information that you would normally get from /etc flat files or NIS. It also provides a Pluggable Authentication Module (PAM) to do authentication to an LDAP server.

---
Changes v1 -> v2
- Incorporate feedback/suggestions by Yann.

Applied to next, after doing a few minimal changes:

[Thomas:
- bump to version 0.9.6
- use --disable-<foo> rather than --enable-<foo>=no.
- fix license information: there is no LICENSE file, it is named COPYING.]

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com