5 if test $# -ge 1 ; then
9 if test $# -ge 1 ; then
13 if test $# -ge 1 ; then
17 echo "running defines.sh"
18 . $SRCDIR/scripts/defines.sh
20 echo "Cleaning up in $DBDIR..."
24 echo "Starting slapd on TCP/IP port $PORT..."
25 . $CONFFILTER $BACKEND < $PWCONF > $DBCONF
26 $SLAPD -f $DBCONF -h $MASTERURI -d $LVL $TIMING > $MASTERLOG 2>&1 &
28 if test $WAIT != 0 ; then
33 echo "Using ldapsearch to check that slapd is running..."
34 for i in 0 1 2 3 4 5; do
35 $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT \
36 'objectclass=*' > /dev/null 2>&1
38 if test $RC = 1 ; then
39 echo "Waiting 5 seconds for slapd to start..."
44 echo "Testing ldapwhoami ..."
45 $LDAPWHOAMI -h $LOCALHOST -p $PORT \
46 -D "$MANAGERDN" -w $PASSWD
49 if test $RC != 0 ; then
50 echo "ldapwhoami failed ($RC)!"
57 echo ">>>>> Test succeeded"