]> git.sur5r.net Git - openldap/blobdiff - tests/scripts/startup_nis_ldap_server.sh
Fix initializer
[openldap] / tests / scripts / startup_nis_ldap_server.sh
index c4ef7c72b2019a66f079c785aeb770732382c880..da66c86d128dc4f7afba6ee2c6cd4b427cdd0517 100755 (executable)
@@ -1,5 +1,5 @@
-#!/bin/sh
-
+#! /bin/sh
+# $OpenLDAP$
 
 if [ $# -eq 0 ]; then
        SRCDIR="."
@@ -13,7 +13,7 @@ fi
 . $SRCDIR/scripts/defines.sh $SRCDIR $BDB2
 
 # Sample NIS database in LDIF format
-NIS_LDIF=$SRCDIR/../servers/slapd/schema/nis_sample.ldif
+NIS_LDIF=$SRCDIR/data/nis_sample.ldif
 
 # Sample configuration file for your LDAP server
 if test "$BACKEND" = "bdb2" ; then
@@ -26,11 +26,11 @@ echo "Cleaning up in $DBDIR..."
 
 rm -f $DBDIR/[!C]*
 
-echo "Running ldif2ldbm to build slapd database..."
-$LDIF2LDBM -f $NIS_CONF -i $NIS_LDIF -e ../servers/slapd/tools
+echo "Running slapadd to build slapd database..."
+$SLAPADD -f $NIS_CONF -l $NIS_LDIF
 RC=$?
 if [ $RC != 0 ]; then
-       echo "ldif2ldbm failed!"
+       echo "slapadd failed!"
        exit $RC
 fi