5 if test $# -ge 1 ; then
9 if test $# -ge 1 ; then
14 if test $# -ge 1 ; then
18 echo "running defines.sh"
19 . $SRCDIR/scripts/defines.sh
21 echo "Datadir is $DATADIR"
23 echo "Cleaning up in $DBDIR..."
27 echo "Starting slapd on TCP/IP port $PORT..."
28 . $CONFFILTER $BACKEND < $SCHEMACONF > $DBCONF
29 $SLAPD -f $DBCONF -h $MASTERURI -d $LVL $TIMING > $MASTERLOG 2>&1 &
31 if test $WAIT != 0 ; then
36 echo "Using ldapsearch to retrieve all the entries..."
37 for i in 0 1 2 3 4 5; do
38 $LDAPSEARCH -b "" -s base -h $LOCALHOST -p $PORT 'extensibleObject' > $SEARCHOUT 2>&1
40 if test $RC = 1 ; then
41 echo "Waiting 5 seconds for slapd to start..."
50 if test $RC != 0 ; then
51 echo ">>>>> Test failed"
53 if grep "TLS:" $SEARCHOUT; then
56 echo ">>>>> Test succeeded"