buildroot/package/nss-pam-ldapd/S45nslcd
Doug Kehn b8fc2884d9 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.

[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.]

Signed-off-by: Doug Kehn <rdkehn@yahoo.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-11-30 23:55:20 +01:00

26 lines
493 B
Bash

#!/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