#!/bin/sh DIR=/etc/ldap/slapd.d rm $DIR -rf mkdir $DIR slaptest -f slapd.conf -F $DIR chown openldap.openldap -R $DIR cp bin/DB_CONFIG /var/lib/ldap chown openldap.openldap -R /var/lib/ldap