version 1.22.2.2, 2005/08/25 05:01:20
|
version 1.22.2.3, 2005/09/28 00:30:36
|
Line 1
|
Line 1
|
#! /bin/sh |
#! /bin/sh |
# $OpenLDAP: pkg/ldap/tests/scripts/test000-rootdse,v 1.24 2005/08/20 22:59:34 hallvard Exp $ |
# $OpenLDAP: pkg/ldap/tests/scripts/test000-rootdse,v 1.26 2005/09/21 00:40:09 kurt Exp $ |
## This work is part of OpenLDAP Software <http://www.openldap.org/>. |
## This work is part of OpenLDAP Software <http://www.openldap.org/>. |
## |
## |
## Copyright 1998-2005 The OpenLDAP Foundation. |
## Copyright 1998-2005 The OpenLDAP Foundation. |
Line 16
|
Line 16
|
echo "running defines.sh" |
echo "running defines.sh" |
. $SRCDIR/scripts/defines.sh |
. $SRCDIR/scripts/defines.sh |
|
|
mkdir -p $TESTRUN $DBDIR1 |
mkdir -p $TESTDIR $DBDIR1 |
|
|
echo "Starting slapd on TCP/IP port $PORT1..." |
echo "Starting slapd on TCP/IP port $PORT1..." |
. $CONFFILTER $BACKEND $MONITORDB < $SCHEMACONF > $CONF1 |
. $CONFFILTER $BACKEND $MONITORDB < $SCHEMACONF > $CONF1 |
Line 51 fi
|
Line 51 fi
|
|
|
count=2 |
count=2 |
if test $RC = 0 ; then |
if test $RC = 0 ; then |
if test $MONITORDB = yes -o $MONITORDB = mod ; then |
case $MONITORDB in yes | mod) |
count=3 |
count=3 |
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 $PORT1 \ |
$LDAPSEARCH -b "cn=Monitor" -s base -h $LOCALHOST -p $PORT1 \ |
'+extensibleObject' >> $SEARCHOUT 2>&1 |
'+extensibleObject' >> $SEARCHOUT 2>&1 |
RC=$? |
RC=$? |
fi |
;; |
|
esac |
fi |
fi |
|
|
test $KILLSERVERS != no && kill -HUP $KILLPIDS |
test $KILLSERVERS != no && kill -HUP $KILLPIDS |