]> git.sur5r.net Git - openldap/blobdiff - tests/scripts/test051-config-undo
Fixes (mostly from Buchan Milne) to make all generated files relative
[openldap] / tests / scripts / test051-config-undo
index 4a41da1def77fcf539cbda15d734ee0fa5238010..273406b7d12ab240faccd89123e396ae9615659e 100755 (executable)
@@ -18,6 +18,9 @@ echo "running defines.sh"
 
 mkdir -p $TESTDIR $DBDIR1
 
+$SLAPPASSWD -g -n >$CONFIGPWF
+echo "rootpw `$SLAPPASSWD -T $CONFIGPWF`" >$TESTDIR/configpw.conf
+
 echo "Running slapadd to build slapd database..."
 . $CONFFILTER $BACKEND $MONITORDB < $UNDOCONF > $CONF1
 $SLAPADD -f $CONF1 <<EOF
@@ -33,8 +36,8 @@ if test $RC != 0 ; then
 fi
 
 echo "Starting slapd on TCP/IP port $PORT1..."
-mkdir testrun/confdir
-$SLAPD -f $CONF1 -F testrun/confdir -h $URI1 -d $LVL $TIMING > $LOG1 2>&1 &
+mkdir $TESTDIR/confdir
+$SLAPD -f $CONF1 -F $TESTDIR/confdir -h $URI1 -d $LVL $TIMING > $LOG1 2>&1 &
 PID=$!
 if test $WAIT != 0 ; then
     echo PID $PID