5 if test $# -ge 1 ; then
9 if test $# -ge 1 ; then
13 if test $# -ge 1 ; then
18 if test $# -ge 1 ; then
22 echo "running defines.sh"
23 . $SRCDIR/scripts/defines.sh
25 echo "Datadir is $DATADIR"
27 echo "Cleaning up in $DBDIR..."
31 echo "Starting slapd on TCP/IP port $PORT..."
32 . $CONFFILTER $BACKEND $MONITORDB < $SCHEMACONF > $DBCONF
33 $SLAPD -f $DBCONF -h $MASTERURI -d $LVL $TIMING > $MASTERLOG 2>&1 &
35 if test $WAIT != 0 ; then
40 echo "Using ldapsearch to retrieve the root DSE..."
41 for i in 0 1 2 3 4 5; do
42 $LDAPSEARCH -b "" -s base -h $LOCALHOST -p $PORT 'extensibleObject' > $SEARCHOUT 2>&1
44 if test $RC = 1 ; then
45 echo "Waiting 5 seconds for slapd to start..."
50 if test $RC = 0 -a $MONITORDB = yes ; then
51 echo "Using ldapsearch to retrieve the cn=Monitor..."
52 $LDAPSEARCH -b "cn=Monitor" -s base -h $LOCALHOST -p $PORT 'extensibleObject' >> $SEARCHOUT 2>&1
60 if test $RC != 0 ; then
61 echo ">>>>> Test failed"
63 if grep "TLS:" $SEARCHOUT; then
66 echo ">>>>> Test succeeded"