slapd.run 228 B

1234567891011
  1. #!/bin/sh
  2. [ -r ./conf ] && . ./conf
  3. : ${LDAPUSER:=ldap}
  4. : ${LDAPGROUP:=ldap}
  5. if [ ! -d /run/openldap ]; then
  6. mkdir /run/openldap
  7. chown $LDAPUSER:$LDAPGROUP /run/openldap
  8. fi
  9. exec 2>&1
  10. exec slapd -u $LDAPUSER -g $LDAPGROUP -d 0