4 echo "running defines.sh"
5 . $SRCDIR/scripts/defines.sh
7 mkdir -p $TESTRUN $DBDIR1
9 echo "Starting slapd on TCP/IP port $PORT1..."
10 . $CONFFILTER $BACKEND $MONITORDB < $SCHEMACONF > $CONF1
11 $SLAPD -f $CONF1 -h $URI1 -d $LVL $TIMING > $LOG1 2>&1 &
13 if test $WAIT != 0 ; then
19 echo "Using ldapsearch to retrieve the root DSE..."
20 for i in 0 1 2 3 4 5; do
21 $LDAPSEARCH -b "" -s base -h $LOCALHOST -p $PORT1 '+extensibleObject' > $SEARCHOUT 2>&1
23 if test $RC = 0 ; then
26 echo "Waiting 5 seconds for slapd to start..."
30 if test $RC = 0 -a $MONITORDB = yes ; then
31 echo "Using ldapsearch to retrieve the cn=Monitor..."
32 $LDAPSEARCH -b "cn=Monitor" -s base -h $LOCALHOST -p $PORT1 '+extensibleObject' >> $SEARCHOUT 2>&1
36 test $KILLSERVERS != no && kill -HUP $KILLPIDS
40 if test $RC != 0 ; then
41 echo ">>>>> Test failed"
43 if grep "TLS:" $SEARCHOUT; then
46 echo ">>>>> Test succeeded"