Merge remote branch 'hbf/mdb.hbf' into mdb

This commit is contained in:
Howard Chu 2011-08-28 04:19:58 -07:00
commit 0fcc88809f
61 changed files with 200 additions and 357 deletions

View file

@ -41,12 +41,9 @@ rootdn "cn=Manager,dc=example,dc=com"
#~null~#directory @TESTDIR@/db.2.a
# Indices to maintain
#bdb#index default pres,eq
#bdb#index objectClass eq
#bdb#index sn pres,eq,sub
#hdb#index default pres,eq
#hdb#index objectClass eq
#hdb#index sn pres,eq,sub
#indexdb#index default pres,eq
#indexdb#index objectClass eq
#indexdb#index sn pres,eq,sub
database @BACKEND@
suffix "dc=example,dc=com"
@ -56,10 +53,7 @@ rootpw secret
#~null~#directory @TESTDIR@/db.1.a
# Indices to maintain
#bdb#index default pres,eq
#bdb#index objectClass eq
#bdb#index sn pres,eq,sub
#hdb#index default pres,eq
#hdb#index objectClass eq
#hdb#index sn pres,eq,sub
#indexdb#index default pres,eq
#indexdb#index objectClass eq
#indexdb#index sn pres,eq,sub

View file

@ -35,12 +35,9 @@ suffix "ou=Information Technology Division,ou=People,dc=example,dc=com"
subordinate
rootdn "cn=Manager, dc=example,dc=com"
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectclass eq
#bdb#index uid pres,eq,sub
#bdb#index cn,sn pres,eq,sub,subany
#hdb#index objectclass eq
#hdb#index uid pres,eq,sub
#hdb#index cn,sn pres,eq,sub,subany
#indexdb#index objectclass eq
#indexdb#index uid pres,eq,sub
#indexdb#index cn,sn pres,eq,sub,subany
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf
@ -49,12 +46,9 @@ suffix "ou=Groups,dc=example,dc=com"
subordinate
rootdn "cn=Manager, dc=example,dc=com"
#~null~#directory @TESTDIR@/db.1.b
#bdb#index objectclass eq
#bdb#index uid pres,eq,sub
#bdb#index cn,sn pres,eq,sub,subany
#hdb#index objectclass eq
#hdb#index uid pres,eq,sub
#hdb#index cn,sn pres,eq,sub,subany
#indexdb#index objectclass eq
#indexdb#index uid pres,eq,sub
#indexdb#index cn,sn pres,eq,sub,subany
#ndb#dbname db_2
#ndb#include @DATADIR@/ndb.conf
@ -63,12 +57,9 @@ suffix "dc=example,dc=com"
rootdn "cn=Manager, dc=example,dc=com"
rootpw secret
#~null~#directory @TESTDIR@/db.1.c
#bdb#index objectclass eq
#bdb#index uid pres,eq,sub
#bdb#index cn pres,eq,sub,subany
#hdb#index objectclass eq
#hdb#index uid pres,eq,sub
#hdb#index cn pres,eq,sub,subany
#indexdb#index objectclass eq
#indexdb#index uid pres,eq,sub
#indexdb#index cn pres,eq,sub,subany
#ndb#dbname db_3
#ndb#include @DATADIR@/ndb.conf

View file

@ -34,10 +34,8 @@ database @BACKEND@
suffix "cn=Everyone,ou=Groups,dc=example,dc=com"
subordinate
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf
@ -46,10 +44,8 @@ suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#~null~#directory @TESTDIR@/db.1.b
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#ndb#dbname db_2
#ndb#include @DATADIR@/ndb.conf

View file

@ -46,10 +46,8 @@ suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf

View file

@ -46,10 +46,8 @@ suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf
add_content_acl on

View file

@ -36,10 +36,8 @@ suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf

View file

@ -55,10 +55,8 @@ rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#null#bind on
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf

View file

@ -43,10 +43,8 @@ suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#~null~#directory @TESTDIR@/db.2.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#ndb#dbname db_2
#ndb#include @DATADIR@/ndb.conf

View file

@ -41,8 +41,7 @@ suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#hdb#index objectClass eq
#indexdb#index objectClass eq
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf

View file

@ -10,10 +10,8 @@ suffix "o=undo"
rootdn "cn=Manager,o=undo"
rootpw secret
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf

View file

@ -40,12 +40,9 @@ suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#bdb#index entryExpireTimestamp eq
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#hdb#index entryExpireTimestamp eq
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#indexdb#index entryExpireTimestamp eq
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf
add_content_acl on

View file

@ -39,10 +39,8 @@ database @BACKEND@
suffix "cn=log"
rootdn "cn=Manager,dc=example,dc=com"
#~null~#directory @TESTDIR@/db.1.b
#bdb#index objectClass eq
#bdb#index entryUUID,entryCSN eq
#hdb#index objectClass eq
#hdb#index entryUUID,entryCSN eq
#indexdb#index objectClass eq
#indexdb#index entryUUID,entryCSN eq
#ndb#dbname db_2
#ndb#include @DATADIR@/ndb.conf
@ -56,12 +54,9 @@ suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#bdb#index entryUUID,entryCSN eq
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#hdb#index entryUUID,entryCSN eq
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#indexdb#index entryUUID,entryCSN eq
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf

View file

@ -48,10 +48,8 @@ rootdn "cn=Replica,dc=example,dc=com"
rootpw secret
#null#bind on
#~null~#directory @TESTDIR@/db.2.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#ndb#dbname db_3
#ndb#include @DATADIR@/ndb.conf

View file

@ -38,10 +38,8 @@ suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf

View file

@ -43,10 +43,8 @@ suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf

View file

@ -43,10 +43,8 @@ suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf
@ -68,10 +66,8 @@ suffix ""
rootdn "cn=Manager,c=US"
rootpw secret
#~null~#directory @TESTDIR@/db.2.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#ndb#dbname db_2
#ndb#include @DATADIR@/ndb.conf

View file

@ -36,14 +36,10 @@ suffix "ou=Information Technology Division,ou=People,dc=example,dc=com"
subordinate
rootdn "cn=Manager 1,dc=example,dc=com"
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectclass eq
#bdb#index uid pres,eq,sub
#bdb#index cn,sn pres,eq,sub,subany
#bdb#index entryUUID,entryCSN pres
#hdb#index objectclass eq
#hdb#index uid pres,eq,sub
#hdb#index cn,sn pres,eq,sub,subany
#hdb#index entryUUID,entryCSN pres
#indexdb#index objectclass eq
#indexdb#index uid pres,eq,sub
#indexdb#index cn,sn pres,eq,sub,subany
#indexdb#index entryUUID,entryCSN pres
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf
@ -54,14 +50,10 @@ suffix "ou=Groups,dc=example,dc=com"
subordinate
rootdn "cn=Manager 1,dc=example,dc=com"
#~null~#directory @TESTDIR@/db.1.b
#bdb#index objectclass eq
#bdb#index uid pres,eq,sub
#bdb#index cn,sn pres,eq,sub,subany
#bdb#index entryUUID,entryCSN pres
#hdb#index objectclass eq
#hdb#index uid pres,eq,sub
#hdb#index cn,sn pres,eq,sub,subany
#hdb#index entryUUID,entryCSN pres
#indexdb#index objectclass eq
#indexdb#index uid pres,eq,sub
#indexdb#index cn,sn pres,eq,sub,subany
#indexdb#index entryUUID,entryCSN pres
#ndb#dbname db_2
#ndb#include @DATADIR@/ndb.conf
@ -86,12 +78,9 @@ suffix "dc=example,dc=com"
rootdn "cn=Manager 1,dc=example,dc=com"
rootpw secret
#~null~#directory @TESTDIR@/db.1.c
#bdb#index objectclass eq
#bdb#index uid pres,eq,sub
#bdb#index cn,sn pres,eq,sub,subany
#hdb#index objectclass eq
#hdb#index uid pres,eq,sub
#hdb#index cn,sn pres,eq,sub,subany
#indexdb#index objectclass eq
#indexdb#index uid pres,eq,sub
#indexdb#index cn,sn pres,eq,sub,subany
#ndb#dbname db_3
#ndb#include @DATADIR@/ndb.conf

View file

@ -36,14 +36,10 @@ suffix "ou=Information Technology Division,ou=People,dc=example,dc=com"
subordinate
rootdn "cn=Manager 2,dc=example,dc=com"
#~null~#directory @TESTDIR@/db.2.a
#bdb#index objectclass eq
#bdb#index uid pres,eq,sub
#bdb#index cn,sn pres,eq,sub,subany
#bdb#index entryUUID,entryCSN pres
#hdb#index objectclass eq
#hdb#index uid pres,eq,sub
#hdb#index cn,sn pres,eq,sub,subany
#hdb#index entryUUID,entryCSN pres
#indexdb#index objectclass eq
#indexdb#index uid pres,eq,sub
#indexdb#index cn,sn pres,eq,sub,subany
#indexdb#index entryUUID,entryCSN pres
#ndb#dbname db_4
#ndb#include @DATADIR@/ndb.conf
@ -68,14 +64,10 @@ suffix "ou=Groups,dc=example,dc=com"
subordinate
rootdn "cn=Manager 2,dc=example,dc=com"
#~null~#directory @TESTDIR@/db.2.b
#bdb#index objectclass eq
#bdb#index uid pres,eq,sub
#bdb#index cn,sn pres,eq,sub,subany
#bdb#index entryUUID,entryCSN pres
#hdb#index objectclass eq
#hdb#index uid pres,eq,sub
#hdb#index cn,sn pres,eq,sub,subany
#hdb#index entryUUID,entryCSN pres
#indexdb#index objectclass eq
#indexdb#index uid pres,eq,sub
#indexdb#index cn,sn pres,eq,sub,subany
#indexdb#index entryUUID,entryCSN pres
#ndb#dbname db_5
#ndb#include @DATADIR@/ndb.conf
@ -88,12 +80,9 @@ suffix "dc=example,dc=com"
rootdn "cn=Manager 2,dc=example,dc=com"
rootpw secret
#~null~#directory @TESTDIR@/db.2.c
#bdb#index objectclass eq
#bdb#index uid pres,eq,sub
#bdb#index cn,sn pres,eq,sub,subany
#hdb#index objectclass eq
#hdb#index uid pres,eq,sub
#hdb#index cn,sn pres,eq,sub,subany
#indexdb#index objectclass eq
#indexdb#index uid pres,eq,sub
#indexdb#index cn,sn pres,eq,sub,subany
#ndb#dbname db_6
#ndb#include @DATADIR@/ndb.conf

View file

@ -35,12 +35,9 @@ suffix "ou=Information Technology Division,ou=People,dc=example,dc=com"
subordinate
rootdn "cn=Manager, dc=example,dc=com"
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectclass eq
#bdb#index uid pres,eq,sub
#bdb#index cn,sn pres,eq,sub,subany
#hdb#index objectclass eq
#hdb#index uid pres,eq,sub
#hdb#index cn,sn pres,eq,sub,subany
#indexdb#index objectclass eq
#indexdb#index uid pres,eq,sub
#indexdb#index cn,sn pres,eq,sub,subany
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf
@ -49,12 +46,9 @@ suffix "ou=Groups,dc=example,dc=com"
subordinate
rootdn "cn=Manager, dc=example,dc=com"
#~null~#directory @TESTDIR@/db.1.b
#bdb#index objectclass eq
#bdb#index uid pres,eq,sub
#bdb#index cn,sn pres,eq,sub,subany
#hdb#index objectclass eq
#hdb#index uid pres,eq,sub
#hdb#index cn,sn pres,eq,sub,subany
#indexdb#index objectclass eq
#indexdb#index uid pres,eq,sub
#indexdb#index cn,sn pres,eq,sub,subany
#ndb#dbname db_2
#ndb#include @DATADIR@/ndb.conf
@ -63,12 +57,9 @@ suffix "dc=example,dc=com"
rootdn "cn=Manager, dc=example,dc=com"
rootpw secret
#~null~#directory @TESTDIR@/db.1.c
#bdb#index objectclass eq
#bdb#index uid pres,eq,sub
#bdb#index cn,sn pres,eq,sub,subany
#hdb#index objectclass eq
#hdb#index uid pres,eq,sub
#hdb#index cn,sn pres,eq,sub,subany
#indexdb#index objectclass eq
#indexdb#index uid pres,eq,sub
#indexdb#index cn,sn pres,eq,sub,subany
#ndb#dbname db_3
#ndb#include @DATADIR@/ndb.conf

View file

@ -63,10 +63,8 @@ rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#null#bind on
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf
@ -81,10 +79,8 @@ suffix "dc=example,dc=it"
rootdn "cn=Manager,dc=example,dc=it"
rootpw secret
#~null~#directory @TESTDIR@/db.2.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#ndb#dbname db_2
#ndb#include @DATADIR@/ndb.conf

View file

@ -71,10 +71,8 @@ suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf

View file

@ -53,10 +53,8 @@ suffix "ou=Groups,dc=example,dc=com"
rootdn "cn=Manager,ou=Groups,dc=example,dc=com"
rootpw secret
#~null~#directory @TESTDIR@/db.3.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#ndb#dbname db_6
#ndb#include @DATADIR@/ndb.conf

View file

@ -55,10 +55,8 @@ rootdn "cn=Manager,ou=People,dc=example,dc=com"
rootpw secret
#null#bind on
#~null~#directory @TESTDIR@/db.2.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#ndb#dbname db_5
#ndb#include @DATADIR@/ndb.conf

View file

@ -38,30 +38,16 @@ rootpw secret
#~null~#directory @TESTDIR@/db.1.a
# Need quality indices on "uid" to check "unchecked" limits...
#bdb#index objectClass eq
#bdb#index uid eq
#hdb#index objectClass eq
#hdb#index uid eq
#mdb#index objectClass eq
#mdb#index uid eq
#indexdb#index objectClass eq
#indexdb#index uid eq
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf
# Need extra limits for pagedResults on backends that support it...
#bdb#limits dn.exact="cn=Unlimited User,ou=Paged Results Users,dc=example,dc=com" size=4 size.pr=unlimited
#bdb#limits dn.exact="cn=Page Size Limited User,ou=Paged Results Users,dc=example,dc=com" size=4 size.pr=4
#bdb#limits dn.exact="cn=Paged Results Disabled User,ou=Paged Results Users,dc=example,dc=com" size=4 size.prtotal=disabled
#bdb#limits dn.exact="cn=Paged Results Limited User,ou=Paged Results Users,dc=example,dc=com" size=4 size.prtotal=10
#hdb#limits dn.exact="cn=Unlimited User,ou=Paged Results Users,dc=example,dc=com" size=4 size.pr=unlimited
#hdb#limits dn.exact="cn=Page Size Limited User,ou=Paged Results Users,dc=example,dc=com" size=4 size.pr=4
#hdb#limits dn.exact="cn=Paged Results Disabled User,ou=Paged Results Users,dc=example,dc=com" size=4 size.prtotal=disabled
#hdb#limits dn.exact="cn=Paged Results Limited User,ou=Paged Results Users,dc=example,dc=com" size=4 size.prtotal=10
#mdb#limits dn.exact="cn=Unlimited User,ou=Paged Results Users,dc=example,dc=com" size=4 size.pr=unlimited
#mdb#limits dn.exact="cn=Page Size Limited User,ou=Paged Results Users,dc=example,dc=com" size=4 size.pr=4
#mdb#limits dn.exact="cn=Paged Results Disabled User,ou=Paged Results Users,dc=example,dc=com" size=4 size.prtotal=disabled
#mdb#limits dn.exact="cn=Paged Results Limited User,ou=Paged Results Users,dc=example,dc=com" size=4 size.prtotal=10
#maindb#limits dn.exact="cn=Unlimited User,ou=Paged Results Users,dc=example,dc=com" size=4 size.pr=unlimited
#maindb#limits dn.exact="cn=Page Size Limited User,ou=Paged Results Users,dc=example,dc=com" size=4 size.pr=4
#maindb#limits dn.exact="cn=Paged Results Disabled User,ou=Paged Results Users,dc=example,dc=com" size=4 size.prtotal=disabled
#maindb#limits dn.exact="cn=Paged Results Limited User,ou=Paged Results Users,dc=example,dc=com" size=4 size.prtotal=10
limits dn.exact="cn=Unlimited User,ou=People,dc=example,dc=com" size=unlimited time=unlimited
limits dn.exact="cn=Soft Limited User,ou=People,dc=example,dc=com" size.soft=4 size.hard=unlimited

View file

@ -38,8 +38,7 @@ suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#hdb#index objectClass eq
#indexdb#index objectClass eq
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf

View file

@ -42,10 +42,8 @@ rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#null#bind on
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf

View file

@ -47,10 +47,8 @@ rootdn "cn=Manager,ou=Meta,dc=example,dc=com"
rootpw secret
#null#bind on
#~null~#directory @TESTDIR@/db.2.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#ndb#dbname db_2
#ndb#include @DATADIR@/ndb.conf

View file

@ -36,8 +36,7 @@ suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#hdb#index objectClass eq
#indexdb#index objectClass eq
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf

View file

@ -58,10 +58,8 @@ pcachebind (&(objectclass=person)(uid=)) 1 @BTTR@ sub "ou=Alumni Association,ou
#hdb#cachesize 20
#~null~#directory @TESTDIR@/db.2.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid,mail pres,eq,sub
#hdb#index objectClass eq
#hdb#index cn,sn,uid,mail pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid,mail pres,eq,sub
#ndb#dbname db_2
#ndb#include @DATADIR@/ndb.conf

View file

@ -37,10 +37,8 @@ rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#null#bind on
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf

View file

@ -41,10 +41,8 @@ suffix "o=University of Mich,c=US"
rootdn "cn=Manager,o=University of Mich,c=US"
rootpw secret
#~null~#directory @TESTDIR@/db.2.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#ndb#dbname db_2
#ndb#include @DATADIR@/ndb.conf

View file

@ -35,8 +35,7 @@ suffix "c=us"
rootdn "cn=Manager,c=us"
rootpw secret
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#hdb#index objectClass eq
#indexdb#index objectClass eq
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf

View file

@ -39,10 +39,8 @@ suffix "o=refint"
rootdn "cn=Manager,o=refint"
rootpw secret
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf

View file

@ -45,8 +45,7 @@ rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#null#bind on
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#hdb#index objectClass eq
#indexdb#index objectClass eq
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf

View file

@ -58,12 +58,9 @@ updatedn "cn=Monitor"
updateref @URI1@
#null#bind on
#~null~#directory @TESTDIR@/db.2.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#bdb#index entryUUID pres,eq
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#hdb#index entryUUID pres,eq
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#indexdb#index entryUUID pres,eq
#ndb#dbname db_2
#ndb#include @DATADIR@/ndb.conf

View file

@ -40,10 +40,8 @@ suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf

View file

@ -47,8 +47,7 @@ rootdse @DATADIR@/rootdse.ldif
database @BACKEND@
suffix "o=OpenLDAP Project,l=Internet"
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#hdb#index objectClass eq
#indexdb#index objectClass eq
#ndb#dbname db_1_a
#ndb#include @DATADIR@/ndb.conf

View file

@ -38,12 +38,9 @@ suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#bdb#index entryUUID,entryCSN eq
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#hdb#index entryUUID,entryCSN eq
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#indexdb#index entryUUID,entryCSN eq
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf

View file

@ -40,12 +40,9 @@ suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#bdb#index entryUUID,entryCSN eq
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#hdb#index entryUUID,entryCSN eq
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#indexdb#index entryUUID,entryCSN eq
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf

View file

@ -48,12 +48,9 @@ rootdn "cn=Replica,dc=example,dc=com"
rootpw secret
#null#bind on
#~null~#directory @TESTDIR@/db.4.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#bdb#index entryUUID,entryCSN eq
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#hdb#index entryUUID,entryCSN eq
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#indexdb#index entryUUID,entryCSN eq
#ndb#dbname db_4
#ndb#include @DATADIR@/ndb.conf

View file

@ -24,12 +24,9 @@ suffix "dc=example,dc=com"
rootdn "cn=Replica,dc=example,dc=com"
rootpw secret
#~null~#directory @TESTDIR@/db.5.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#bdb#index entryUUID,entryCSN eq
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#hdb#index entryUUID,entryCSN eq
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#indexdb#index entryUUID,entryCSN eq
#ndb#dbname db_5
#ndb#include @DATADIR@/ndb.conf

View file

@ -36,12 +36,9 @@ suffix "dc=example,dc=com"
rootdn "cn=Replica,dc=example,dc=com"
rootpw secret
#~null~#directory @TESTDIR@/db.6.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#bdb#index entryUUID,entryCSN eq
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#hdb#index entryUUID,entryCSN eq
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#indexdb#index entryUUID,entryCSN eq
#ndb#dbname db_6
#ndb#include @DATADIR@/ndb.conf

View file

@ -39,12 +39,9 @@ rootdn "cn=Replica,dc=example,dc=com"
rootpw secret
#null#bind on
#~null~#directory @TESTDIR@/db.2.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#bdb#index entryUUID,entryCSN eq
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#hdb#index entryUUID,entryCSN eq
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#indexdb#index entryUUID,entryCSN eq
#ndb#dbname db_2
#ndb#include @DATADIR@/ndb.conf

View file

@ -36,12 +36,9 @@ suffix "dc=example,dc=com"
rootdn "cn=Replica,dc=example,dc=com"
rootpw secret
#~null~#directory @TESTDIR@/db.3.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#bdb#index entryUUID,entryCSN eq
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#hdb#index entryUUID,entryCSN eq
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#indexdb#index entryUUID,entryCSN eq
#ndb#dbname db_3
#ndb#include @DATADIR@/ndb.conf

View file

@ -45,10 +45,8 @@ rootdn "o=translucent"
rootpw secret
#null#bind on
#~null~#directory @TESTDIR@/db.2.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#ndb#dbname db_2
#ndb#include @DATADIR@/ndb.conf

View file

@ -40,9 +40,7 @@ rootdn "o=translucent"
rootpw secret
#null#bind on
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf

View file

@ -39,10 +39,8 @@ suffix "o=unique"
rootdn "cn=Manager,o=unique"
rootpw secret
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf

View file

@ -47,10 +47,8 @@ rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#null#bind on
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf

View file

@ -37,10 +37,8 @@ suffix "o=valsort"
rootdn "cn=Manager,o=valsort"
rootpw secret
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf

View file

@ -56,10 +56,8 @@ suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#ndb#dbname db_1
#ndb#include @DATADIR@/ndb.conf

View file

@ -42,11 +42,9 @@ rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#null#bind on
#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#bdb#checkpoint 1024 5
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#hdb#checkpoint 1024 5
#mdb#maxsize 33554432
#ndb#dbname db_1

View file

@ -36,10 +36,8 @@ suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#~null~#directory @TESTDIR@/db.2.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
#hdb#index cn,sn,uid pres,eq,sub
#indexdb#index objectClass eq
#indexdb#index cn,sn,uid pres,eq,sub
#ndb#dbname db_2
#ndb#include @DATADIR@/ndb.conf

View file

@ -163,11 +163,22 @@ if test -z "$BACKEND" ; then
exit 1
fi
fi
BACKENDTYPE=`eval 'echo $AC_'$BACKEND`
if test "x$BACKENDTYPE" = "x" ; then
BACKENDTYPE="unknown"
fi
export BACKEND BACKENDTYPE WAIT KILLSERVERS PRESERVE SYNCMODE USERDATA
# Backend features. indexdb: indexing and unchecked limit.
# maindb: main storage backend. Currently index,limits,mode,paged results.
INDEXDB=noindexdb MAINDB=nomaindb
case $BACKEND in
bdb|hdb|mdb) INDEXDB=indexdb MAINDB=maindb ;;
ndb) INDEXDB=indexdb ;;
esac
export BACKEND BACKENDTYPE INDEXDB MAINDB \
WAIT KILLSERVERS PRESERVE SYNCMODE USERDATA
if test $# = 0 ; then
echo "$USAGE"; exit 1

View file

@ -56,6 +56,8 @@ sed -e "s/@BACKEND@/${BACKEND}/" \
-e "s/^#${AC_translucent}#//" \
-e "s/^#${AC_unique}#//" \
-e "s/^#${AC_valsort}#//" \
-e "s/^#${INDEXDB}#//" \
-e "s/^#${MAINDB}#//" \
-e "s/^#${MON}#//" \
-e "s/^#${MONMOD}#//" \
-e "s/^#${SASL}#//" \

View file

@ -501,7 +501,7 @@ case $RC in
;;
esac
case $BACKEND in bdb | hdb | mdb)
if test $INDEXDB = indexdb ; then
echo "Testing higher than unchecked limit requested for unchecked limited ID..."
$LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \
@ -554,9 +554,9 @@ case $RC in
exit $RC
;;
esac
;;
*) echo "Skipping test for unchecked limit with $BACKEND backend." ;;
esac
else
echo "Skipping test for unchecked limit with $BACKEND backend."
fi
echo "Testing no limits requested for limited regex..."
$LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \
@ -749,17 +749,13 @@ case $RC in
;;
esac
case $BACKEND in
bdb | hdb | mdb)
# only bdb|hdb currently supports pagedResults control
;;
*)
if test $MAINDB != maindb ; then
# only bdb|hdb|mdb currently supports pagedResults control
test $KILLSERVERS != no && kill -HUP $KILLPIDS
echo ">>>>> Test succeeded"
exit 0
;;
esac
fi
if test x"$SLAPD_PAGE_SIZE" != x ; then
PAGESIZE="$SLAPD_PAGE_SIZE"

View file

@ -265,8 +265,7 @@ if test $RC != 0 ; then
exit $RC
fi
case $BACKEND in
bdb | hdb)
if test $INDEXDB = indexdb ; then
$LDAPMODIFY -D cn=config -H $URI1 -y $CONFIGPWF <<EOF >>$TESTOUT 2>&1
dn: olcDatabase={1}$BACKEND,cn=config
changetype: modify
@ -280,8 +279,7 @@ EOF
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
fi
;;
esac
fi
echo "Using ldapadd to populate provider..."
$LDAPADD -D "$MANAGERDN" -H $URI1 -w $PASSWD -f $LDIFORDERED \

View file

@ -311,8 +311,7 @@ if test $RC != 0 ; then
exit $RC
fi
case $BACKEND in
bdb | hdb)
if test $INDEXDB = indexdb ; then
$LDAPMODIFY -D cn=config -H $URI1 -y $CONFIGPWF <<EOF >>$TESTOUT 2>&1
dn: olcDatabase={1}$BACKEND,cn=config
changetype: modify
@ -326,8 +325,7 @@ EOF
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
fi
;;
esac
fi
echo "Using ldapadd to populate server 1..."
$LDAPADD -D "$MANAGERDN" -H $URI1 -w $PASSWD -f $LDIFORDERED \

View file

@ -72,7 +72,9 @@ EOF
fi
fi
bdbInclude="# " nullExclude=""
indexInclude="" mainInclude="" bdbInclude="# " nullExclude=""
test $INDEXDB = indexdb || indexInclude="# "
test $MAINDB = maindb || mainInclude="# "
case $BACKEND in
bdb | hdb) bdbInclude="" ;;
null) nullExclude="# " ;;
@ -111,11 +113,11 @@ olcRootPW:: c2VjcmV0
olcMonitoring: TRUE
${nullExclude}olcDbDirectory: $TESTDIR/db.1.a/
${bdbInclude}olcDbCacheSize: 1000
${bdbInclude}olcDbIndex: objectClass eq
${bdbInclude}olcDbIndex: cn pres,eq,sub
${bdbInclude}olcDbIndex: uid pres,eq,sub
${bdbInclude}olcDbIndex: sn pres,eq,sub
${bdbInclude}olcDbMode: 384"
${indexInclude}olcDbIndex: objectClass eq
${indexInclude}olcDbIndex: cn pres,eq,sub
${indexInclude}olcDbIndex: uid pres,eq,sub
${indexInclude}olcDbIndex: sn pres,eq,sub
${mainInclude}olcDbMode: 384"
dn: olcOverlay={0}memberof,olcDatabase={1}$BACKEND,cn=config
objectClass: olcOverlayConfig

View file

@ -66,7 +66,9 @@ fi
cat /dev/null > $TESTOUT
bdbInclude="# " nullExclude=""
indexInclude="" mainInclude="" bdbInclude="# " nullExclude=""
test $INDEXDB = indexdb || indexInclude="# "
test $MAINDB = maindb || mainInclude="# "
case $BACKEND in
bdb | hdb) bdbInclude="" ;;
null) nullExclude="# " ;;
@ -103,11 +105,11 @@ olcRootPW:: c2VjcmV0
olcMonitoring: TRUE
${nullExclude}olcDbDirectory: $TESTDIR/db.1.a/
${bdbInclude}olcDbCacheSize: 1000
${bdbInclude}olcDbIndex: objectClass eq
${bdbInclude}olcDbIndex: cn pres,eq,sub
${bdbInclude}olcDbIndex: uid pres,eq,sub
${bdbInclude}olcDbIndex: sn pres,eq,sub
${bdbInclude}olcDbMode: 384
${indexInclude}olcDbIndex: objectClass eq
${indexInclude}olcDbIndex: cn pres,eq,sub
${indexInclude}olcDbIndex: uid pres,eq,sub
${indexInclude}olcDbIndex: sn pres,eq,sub
${mainInclude}olcDbMode: 384
# {0}memberof, {1}$BACKEND, config
dn: olcOverlay={0}memberof,olcDatabase={1}$BACKEND,cn=config

View file

@ -337,8 +337,7 @@ if test $RC != 0 ; then
exit $RC
fi
case $BACKEND in
bdb | hdb)
if test $INDEXDB = indexdb ; then
$LDAPMODIFY -D cn=config -H $URI1 -y $CONFIGPWF <<EOF >>$TESTOUT 2>&1
dn: olcDatabase={2}$BACKEND,cn=config
changetype: modify
@ -352,8 +351,7 @@ EOF
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
fi
;;
esac
fi
echo "Using ldapadd to populate provider..."
$LDAPADD -D "$MANAGERDN" -H $URI1 -w $PASSWD -f $LDIFORDERED \

View file

@ -113,7 +113,7 @@ EOF
fi
MYURI=`eval echo '$URI'$n`
PROVIDERURI=`eval echo '$URI'$o`
if [ $BACKEND = hdb -o $BACKEND = bdb ]; then
if test $INDEXDB = indexdb ; then
INDEX1="olcDbIndex: objectClass,entryCSN,reqStart,reqDN eq"
INDEX2="olcDbIndex: objectClass,entryCSN,entryUUID eq"
else