
- update common/shlibs - add slapd.ldif to conf_files - add more options to runit service - remove unregognized configure opts - run make depend separately as suggested in https://www.openldap.org/doc/admin26/install.html - build modules into slapd directly (dynamic modules are broken on cross-compiling) - move ldapvc too openldap-tools
11 lines
266 B
Bash
11 lines
266 B
Bash
#!/bin/sh
|
|
[ -r ./conf ] && . ./conf
|
|
: ${LDAPUSER:=ldap}
|
|
: ${LDAPGROUP:=ldap}
|
|
if [ ! -d /run/openldap ]; then
|
|
mkdir /run/openldap
|
|
chown $LDAPUSER:$LDAPGROUP /run/openldap
|
|
fi
|
|
exec 2>&1
|
|
exec slapd -u $LDAPUSER -g $LDAPGROUP -d 0 ${LDAPURLS:+-h "$LDAPURLS"} $LDAPOPTS
|