-#!/bin/sh
+#! /bin/sh
+# $OpenLDAP$
. scripts/defines.sh
echo "Cleaning up in $DBDIR..."
-rm -f $DBDIR/[^C]*
+rm -f $DBDIR/[!C]*
-echo "Running ldif2ldbm to build slapd database..."
-$LDIF2LDBM -f $CONF -i $LDIF -e ../servers/slapd/tools
+echo "Running slapadd to build slapd database..."
+$slapadd -f $CONF -l $LDIF
RC=$?
-if [ $RC != 0 ]; then
- echo "ldif2ldbm failed!"
+if test $RC != 0 ; then
+ echo "slapadd failed!"
exit $RC
fi