]> git.sur5r.net Git - openldap/blobdiff - tests/scripts/startup_nis_ldap_server.sh
Merge remote branch 'mdb/mdb.master'
[openldap] / tests / scripts / startup_nis_ldap_server.sh
index f2bf20174754bcf548499f1989e9f0bb8b89f83c..5c5b1560e308064dc343a48853954412a73b9142 100755 (executable)
@@ -1,5 +1,17 @@
-#!/bin/sh
-
+#! /bin/sh
+# $OpenLDAP$
+## This work is part of OpenLDAP Software <http://www.openldap.org/>.
+##
+## Copyright 1998-2011 The OpenLDAP Foundation.
+## All rights reserved.
+##
+## Redistribution and use in source and binary forms, with or without
+## modification, are permitted only as authorized by the OpenLDAP
+## Public License.
+##
+## A copy of this license is available in the file LICENSE in the
+## top-level directory of the distribution or, alternatively, at
+## <http://www.OpenLDAP.org/license.html>.
 
 if [ $# -eq 0 ]; then
        SRCDIR="."
@@ -27,7 +39,7 @@ echo "Cleaning up in $DBDIR..."
 rm -f $DBDIR/[!C]*
 
 echo "Running slapadd to build slapd database..."
-$LDIF2LDBM -f $NIS_CONF -l $NIS_LDIF
+$SLAPADD -f $NIS_CONF -l $NIS_LDIF
 RC=$?
 if [ $RC != 0 ]; then
        echo "slapadd failed!"