X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tests%2Fscripts%2Fstartup_nis_ldap_server.sh;h=830a0df5a47db0c46000585db6a23362c67f7094;hb=3743a5a68e4d608949d5fd04904733ee5c1ac959;hp=d7aef436e318e72bb387ccad000871c023e93726;hpb=6cf71210f71c18635d764533154fa637fe49d50c;p=openldap diff --git a/tests/scripts/startup_nis_ldap_server.sh b/tests/scripts/startup_nis_ldap_server.sh index d7aef436e3..830a0df5a4 100755 --- a/tests/scripts/startup_nis_ldap_server.sh +++ b/tests/scripts/startup_nis_ldap_server.sh @@ -1,4 +1,17 @@ -#!/bin/sh +#! /bin/sh +# $OpenLDAP$ +## This work is part of OpenLDAP Software . +## +## Copyright 1998-2012 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 +## . if [ $# -eq 0 ]; then SRCDIR="." @@ -12,7 +25,7 @@ fi . $SRCDIR/scripts/defines.sh $SRCDIR $BDB2 # Sample NIS database in LDIF format -NIS_LDIF=$SRCDIR/../schema/nis_sample.ldif +NIS_LDIF=$SRCDIR/data/nis_sample.ldif # Sample configuration file for your LDAP server if test "$BACKEND" = "bdb2" ; then @@ -25,11 +38,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