mirror of
https://github.com/thead-yocto-mirror/meta-openembedded
synced 2026-09-17 12:41:58 +02:00
1. upgrade to 2.4.20 2. remove two backup patches 2. integrate two patches to fix CVE-2015-1545 and CVE-2015-1546 3. disable bdb/hdb backend, since BerkeleyDB 6.0.20+ license is incompatible with LDAP Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
36 lines
633 B
Bash
36 lines
633 B
Bash
#! /bin/sh
|
|
#
|
|
# This is an init script for openembedded
|
|
# Copy it to /etc/init.d/openldap and type
|
|
# > update-rc.d openldap defaults 60
|
|
#
|
|
|
|
# Source function library.
|
|
. /etc/init.d/functions
|
|
|
|
slapd=/usr/sbin/slapd
|
|
test -x "$slapd" || exit 0
|
|
|
|
|
|
case "$1" in
|
|
start)
|
|
echo -n "Starting OpenLDAP: "
|
|
start-stop-daemon --start --quiet --exec $slapd
|
|
echo "."
|
|
;;
|
|
stop)
|
|
echo -n "Stopping OpenLDAP: "
|
|
start-stop-daemon --stop --quiet --pidfile /var/run/slapd.pid
|
|
echo "."
|
|
;;
|
|
status)
|
|
status $slapd;
|
|
exit $?
|
|
;;
|
|
*)
|
|
echo "Usage: /etc/init.d/openldap {start|stop|status}"
|
|
exit 1
|
|
esac
|
|
|
|
exit 0
|