]> git.sur5r.net Git - openldap/commitdiff
Test updates
authorQuanah Gibson-Mount <quanah@openldap.org>
Wed, 22 Dec 2010 00:40:55 +0000 (00:40 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 22 Dec 2010 00:40:55 +0000 (00:40 +0000)
allow to customize the number of children; use swamp
mode=self makes more sense
use as tester an identity that needs to be proxedauthz'ed (more representative and stressful)

tests/data/slapd-glue-ldap.conf
tests/data/slapd-meta-target1.conf
tests/data/slapd-meta-target2.conf
tests/data/slapd-meta.conf
tests/scripts/test036-meta-concurrency
tests/scripts/test039-glue-ldap-concurrency

index 8d12f859f0b81235732fb077d269074a0068dfdd..cfeae8c02fc6d05e3b8fae9db9a016be204f5887 100644 (file)
@@ -52,9 +52,9 @@ chase-referrals       no
 idassert-bind  bindmethod=simple
                binddn="cn=Manager,ou=Meta,dc=example,dc=com"
                credentials="secret"
-               mode=none
+               mode=self
                flags=non-prescriptive
-idassert-authzfrom     "dn.exact:cn=Manager,dc=example,dc=com"
+idassert-authzfrom     "dn.exact:cn=Manager,o=Local"
 
 # local
 database       ldap
@@ -66,10 +66,17 @@ chase-referrals     no
 idassert-bind  bindmethod=simple
                binddn="cn=Manager,dc=example,dc=com"
                credentials="secret"
-               mode=none
+               mode=self
                flags=non-prescriptive
-idassert-authzfrom     "dn.exact:cn=Manager,dc=example,dc=com"
+idassert-authzfrom     "dn.exact:cn=Manager,o=Local"
 
 limits         dn.exact="cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc=com" time=1 size=8
 
+# This is only for binding as the rootdn
+database       ldap
+suffix         "o=Local"
+rootdn         "cn=Manager,o=Local"
+rootpw         secret
+uri            "@URI6@"
+
 #monitor#database      monitor
index 278cc8936c67799bc2f2e51adde85f5d1e17bb76..37d2f5d1df100d49e0cf5153a48956aef373dbe4 100644 (file)
@@ -52,12 +52,15 @@ rootpw              secret
 # ITS#5154: force mixed success/failure of binds using same connection
 access to dn="cn=Barbara Jensen,ou=Information Technology DivisioN,ou=People,dc=example,dc=com"
                attrs=userPassword
+       by dn="cn=Manager,o=Local" write
        by * =r
 
 access to attrs=userPassword
+       by dn="cn=Manager,o=Local" write
        by * =xr
 
 access to *
+       by dn="cn=Manager,o=Local" write
        by * read
 
 #monitor#database      monitor
index bd590c92073e6ac0db4a2afd99271682a4cbdaaa..9df9bfcfeeba96dba965f345ecd19eb19e886803 100644 (file)
@@ -54,4 +54,8 @@ rootpw                secret
 #ndb#dbname db_2
 #ndb#include @DATADIR@/ndb.conf
 
+access to *
+       by dn="cn=Manager,o=Local" write
+       by * read
+
 #monitor#database      monitor
index 2c2a95aa4f4eb4f8a6eb070ce2e7b90bf5d22cfc..1cb56ced642a06bbdd22846d5c8f87e97177d767 100644 (file)
@@ -56,9 +56,9 @@ suffixmassage "ou=Meta,o=Example,c=US" "ou=Meta,dc=example,dc=com"
 idassert-bind  bindmethod=simple
                binddn="cn=manager,ou=meta,dc=example,dc=com"
                credentials="secret"
-               mode=none
+               mode=self
                flags=non-prescriptive
-idassert-authzFrom     "dn.exact:cn=Manager,o=Example,c=US"
+idassert-authzFrom     "dn.exact:cn=Manager,o=Local"
 
 # remote
 uri            "@URI1@o=Example,c=US"
@@ -68,10 +68,17 @@ suffixmassage       "o=Example,c=US" "dc=example,dc=com"
 idassert-bind  bindmethod=simple
                binddn="cn=manager,dc=example,dc=com"
                credentials="secret"
-               mode=none
+               mode=self
                flags=non-prescriptive
-idassert-authzFrom     "dn.exact:cn=Manager,o=Example,c=US"
+idassert-authzFrom     "dn.exact:cn=Manager,o=Local"
 
 limits         dn.exact="cn=Bjorn Jensen,ou=Information Technology Division,ou=People,o=Example,c=US" time=1 size=8
 
+# This is only for binding as the rootdn
+database       meta
+suffix         "o=Local"
+rootdn         "cn=Manager,o=Local"
+rootpw         secret
+uri            "@URI6@o=Local"
+
 #monitor#database      monitor
index 339e1e03f5a525f85ad2f3ebbaf148827f055120..f8bc1d636e7a0b20820047b9856e6e7864c5005c 100755 (executable)
@@ -32,6 +32,10 @@ if test x$TESTLOOPS = x ; then
        TESTLOOPS=50
 fi
 
+if test x$TESTCHILDREN = x ; then
+       TESTCHILDREN=20
+fi
+
 rm -rf $TESTDIR
 
 mkdir -p $TESTDIR $DBDIR1 $DBDIR2
@@ -193,10 +197,12 @@ done
 # NOTE: copies do_* files from $TESTDIR/$DATADIR to $TESTDIR
 $MONITORDATA "$MONITORDB" "$TESTDIR/$DATADIR" "$TESTDIR"
 
+BINDDN="cn=Manager,o=Local"
+PASSWD="secret"
 echo "Using tester for concurrent server access..."
 $SLAPDTESTER -P "$PROGDIR" -d "$TESTDIR" -h $LOCALHOST -p $PORT3 \
-       -D "cn=Manager,$METABASEDN" -w $PASSWD -l $TESTLOOPS -r 20 \
-       -i '!REFERRAL' -i '*INVALID_CREDENTIALS'
+       -D "$BINDDN" -w $PASSWD -l $TESTLOOPS -j $TESTCHILDREN \
+       -r 20 -i '!REFERRAL' -i '*INVALID_CREDENTIALS' -SS
 RC=$?
 
 if test $RC != 0 ; then
index b441d2b1fc2e1f074143967fe08d96404d8293cd..2437cc57c5077a0bfa10250ecdf44b219123a922 100755 (executable)
@@ -36,6 +36,10 @@ if test x$TESTOLOOPS = x ; then
        TESTOLOOPS=1
 fi
 
+if test x$TESTCHILDREN = x ; then
+       TESTCHILDREN=20
+fi
+
 rm -rf $TESTDIR
 
 mkdir -p $TESTDIR $DBDIR1 $DBDIR2
@@ -182,10 +186,12 @@ done
 $MONITORDATA "$MONITORDB" "$TESTDIR/$DATADIR" "$TESTDIR"
 
 echo "Using tester for concurrent server access..."
+BINDDN="cn=Manager,o=Local"
+PASSWD="secret"
 $SLAPDTESTER -P "$PROGDIR" -d "$TESTDIR" -h $LOCALHOST -p $PORT3 \
-       -D "cn=Manager,$METABASEDN" -w $PASSWD \
-       -l $TESTLOOPS -L $TESTOLOOPS -r 20 \
-       -i '!REFERRAL' -i '*INVALID_CREDENTIALS'
+       -D "$BINDDN" -w $PASSWD \
+       -l $TESTLOOPS -L $TESTOLOOPS -j $TESTCHILDREN -r 20 \
+       -i '!REFERRAL' -i '*INVALID_CREDENTIALS' -SS
 RC=$?
 
 if test $RC != 0 ; then