openbsd-ports/databases/openldap/pkg/MESSAGE-server
landry 897eaf2c75 Install @sample /var/openldap-* as owned by unpriviledged user _openldap, and
add a pkg/MESSAGE-server teaching the user how to launch slapd in rc.local as
_openldap user.

english 'looks fine' jmc@, and ok ajacoutot@ mbalmer@ (maintainer)
2008-02-13 09:45:54 +00:00

14 lines
405 B
Plaintext

To start slapd, configure it in ${SYSCONFDIR}/openldap/slapd.conf then add
the following line to /etc/rc.conf.local:
slapd_flags="-u _openldap"
and to /etc/rc.local (be sure to start it _before_ any daemon that may
need it):
if [ "$slapd_flags" != "NO" -a -x ${PREFIX}/libexec/slapd ]; then
install -d -o _openldap /var/run/openldap
${PREFIX}/libexec/slapd $slapd_flags
echo -n ' slapd'
fi