mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-24 05:53:30 +08:00
b8fc2884d9
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>
26 lines
493 B
Bash
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
|
|
|