reset candidates when intentionally abandoning; consistently handle referrals

This commit is contained in:
Pierangelo Masarati 2005-04-26 00:06:07 +00:00
parent 06eef0c78d
commit 6c65ad09b0
4 changed files with 19 additions and 1 deletions

View File

@ -426,3 +426,5 @@ pager: +1 313 555 2844
facsimileTelephoneNumber: +1 313 555 9700
telephoneNumber: +1 313 555 5331
# refldap://:9010/cn=Somewhere,ou=Meta,dc=example,dc=com??sub

View File

@ -43,7 +43,9 @@ database meta
suffix "o=Example,c=US"
rootdn "cn=Manager,o=Example,c=US"
rootpw secret
nretries forever
dont-chase-referrals
#nretries forever
nretries 1000
# local
uri "@URI2@ou=Meta,o=Example,c=US"

View File

@ -15,3 +15,10 @@ cn: Dan Aykroyd
sn: Aykroyd
userPassword: elwood
description: Elwood Blues
dn: cn=Somewhere,ou=Meta,dc=example,dc=com
objectClass: referral
objectClass: extensibleObject
cn: Somewhere
ref: ldap://:9010

View File

@ -170,6 +170,13 @@ for f in $TESTDIR/$DATADIR/do_read.* ; do
echo "ou=Meta,$METABASEDN" >> $f
done
# add a read that matches a referral in the local database only,
# but selects also the remote as candidate; this should be removed
# to compare execution times with test008...
for f in $TESTDIR/$DATADIR/do_read.* ; do
echo "cn=Somewhere,ou=Meta,$METABASEDN" >> $f
done
echo "Using tester for concurrent server access..."
$SLAPDTESTER -P "$PROGDIR" -d "$TESTDIR/$DATADIR" -h $LOCALHOST -p $PORT3 -D "cn=Manager,$METABASEDN" -w $PASSWD -l 50 # -r 20
RC=$?