version 1.9.2.5, 2002/09/24 00:05:01
|
version 1.10, 2002/06/19 04:00:48
|
Line 1
|
Line 1
|
#! /bin/sh |
#! /bin/sh |
# $OpenLDAP: pkg/ldap/tests/scripts/test000-rootdse,v 1.9.2.4 2002/09/22 16:28:14 kurt Exp $ |
# $OpenLDAP: pkg/ldap/tests/scripts/test000-rootdse,v 1.9 2002/01/21 05:35:04 kurt Exp $ |
|
|
SRCDIR="." |
SRCDIR="." |
if test $# -ge 1 ; then |
if test $# -ge 1 ; then |
Line 39 fi
|
Line 39 fi
|
|
|
echo "Using ldapsearch to retrieve the root DSE..." |
echo "Using ldapsearch to retrieve the root DSE..." |
for i in 0 1 2 3 4 5; do |
for i in 0 1 2 3 4 5; do |
$LDAPSEARCH -b "" -s base -h $LOCALHOST -p $PORT '+extensibleObject' > $SEARCHOUT 2>&1 |
$LDAPSEARCH -b "" -s base -h $LOCALHOST -p $PORT 'extensibleObject' > $SEARCHOUT 2>&1 |
RC=$? |
RC=$? |
if test $RC = 0 ; then |
if test $RC = 1 ; then |
break |
echo "Waiting 5 seconds for slapd to start..." |
|
sleep 5 |
fi |
fi |
echo "Waiting 5 seconds for slapd to start..." |
|
sleep 5 |
|
done |
done |
|
|
if test $RC = 0 -a $MONITORDB = yes ; then |
if test $RC = 0 -a $MONITORDB = yes ; then |
echo "Using ldapsearch to retrieve the cn=Monitor..." |
echo "Using ldapsearch to retrieve the cn=Monitor..." |
$LDAPSEARCH -b "cn=Monitor" -s base -h $LOCALHOST -p $PORT '+extensibleObject' >> $SEARCHOUT 2>&1 |
$LDAPSEARCH -b "cn=Monitor" -s base -h $LOCALHOST -p $PORT 'extensibleObject' >> $SEARCHOUT 2>&1 |
RC=$? |
RC=$? |
fi |
fi |
|
|