4 echo "running defines.sh"
5 . $SRCDIR/scripts/defines.sh
7 mkdir -p $TESTDIR $DBDIR2
9 echo "Starting slapd on TCP/IP port $PORT2..."
10 . $CONFFILTER $BACKEND < $CONFTWO > $CONF2
11 $SLAPD -f $CONF2 -h $URI2 -d $LVL $TIMING > $LOG2 2>&1 &
14 echo "Using ldapsearch to retrieve all the entries..."
15 for i in 0 1 2 3 4 5; do
16 $LDAPSEARCH -S "" -b "" -s base -h $LOCALHOST -p $PORT2 > $SERVER2OUT 2>&1
18 if test $RC = 1 ; then
19 echo "Waiting 5 seconds for slapd to start..."
24 if test $RC != 0 ; then
25 echo "ldapsearch failed ($RC)!"
29 echo ">>>>> Server2 (pid=$PID) started"