5 if test $# -ge 1 ; then
9 . $SRCDIR/scripts/args.sh $*
11 echo "running defines.sh"
12 . $SRCDIR/scripts/defines.sh
14 echo "Datadir is $DATADIR"
16 echo "Cleaning up in $DBDIR..."
20 echo "Starting slapd on TCP/IP port $PORT..."
21 . $CONFFILTER $BACKEND $MONITORDB < $SCHEMACONF > $DBCONF
22 $SLAPD -f $DBCONF -h $MASTERURI -d $LVL $TIMING > $MASTERLOG 2>&1 &
24 if test $WAIT != 0 ; then
29 echo "Using ldapsearch to retrieve the root DSE..."
30 for i in 0 1 2 3 4 5; do
31 $LDAPSEARCH -b "" -s base -h $LOCALHOST -p $PORT '+extensibleObject' > $SEARCHOUT 2>&1
33 if test $RC = 0 ; then
36 echo "Waiting 5 seconds for slapd to start..."
40 if test $RC = 0 -a $MONITORDB = yes ; then
41 echo "Using ldapsearch to retrieve the cn=Monitor..."
42 $LDAPSEARCH -b "cn=Monitor" -s base -h $LOCALHOST -p $PORT '+extensibleObject' >> $SEARCHOUT 2>&1
50 if test $RC != 0 ; then
51 echo ">>>>> Test failed"
53 if grep "TLS:" $SEARCHOUT; then
56 echo ">>>>> Test succeeded"