Skip to content
Snippets Groups Projects
Commit 6c65ad09 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

reset candidates when intentionally abandoning; consistently handle referrals

parent 06eef0c7
Branches
Tags
No related merge requests found
......@@ -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
......@@ -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"
......
......@@ -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
......@@ -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=$?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment