From 9e29048fd1caa1382fa08d1ac7e41ba7ae597b60 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 30 May 2005 15:16:38 +0000 Subject: [PATCH] allow most tests to run for other backend types (with limitations) --- tests/data/slapd-cache-master.conf | 8 ++++++-- tests/data/slapd-dn.conf | 8 ++++++-- tests/data/slapd-emptydn.conf | 16 ++++++++++++---- tests/data/slapd-ppolicy.conf | 4 +++- tests/data/slapd-proxycache.conf | 12 +++++++++--- tests/data/slapd-pw.conf | 8 ++++++-- tests/data/slapd-unique.conf | 8 ++++++-- tests/data/slapd-whoami.conf | 8 ++++++-- 8 files changed, 54 insertions(+), 18 deletions(-) diff --git a/tests/data/slapd-cache-master.conf b/tests/data/slapd-cache-master.conf index f4b8073aaa..87476f20dd 100644 --- a/tests/data/slapd-cache-master.conf +++ b/tests/data/slapd-cache-master.conf @@ -37,7 +37,11 @@ suffix "dc=example,dc=com" directory ./testrun/db.1.a rootdn "cn=Manager,dc=example,dc=com" rootpw secret -index objectClass eq -index cn,sn,uid pres,eq,sub +#bdb#index objectClass eq +#bdb#index cn,sn,uid pres,eq,sub +#hdb#index objectClass eq +#hdb#index cn,sn,uid pres,eq,sub +#ldbm#index objectClass eq +#ldbm#index cn,sn,uid pres,eq,sub #monitor#database monitor diff --git a/tests/data/slapd-dn.conf b/tests/data/slapd-dn.conf index c7e414c089..eb429ae8cb 100644 --- a/tests/data/slapd-dn.conf +++ b/tests/data/slapd-dn.conf @@ -37,7 +37,11 @@ suffix "dc=example,dc=com" directory ./testrun/db.1.a rootdn "cn=Manager,dc=example,dc=com" rootpw secret -index objectClass eq -index cn,sn,uid pres,eq,sub +#bdb#index objectClass eq +#bdb#index cn,sn,uid pres,eq,sub +#hdb#index objectClass eq +#hdb#index cn,sn,uid pres,eq,sub +#ldbm#index objectClass eq +#ldbm#index cn,sn,uid pres,eq,sub #monitor#database monitor diff --git a/tests/data/slapd-emptydn.conf b/tests/data/slapd-emptydn.conf index 55e5fa1708..b98b059ff6 100644 --- a/tests/data/slapd-emptydn.conf +++ b/tests/data/slapd-emptydn.conf @@ -43,8 +43,12 @@ suffix "dc=example,dc=com" directory ./testrun/db.1.a rootdn "cn=Manager,dc=example,dc=com" rootpw secret -index objectClass eq -index cn,sn,uid pres,eq,sub +#bdb#index objectClass eq +#bdb#index cn,sn,uid pres,eq,sub +#hdb#index objectClass eq +#hdb#index cn,sn,uid pres,eq,sub +#ldbm#index objectClass eq +#ldbm#index cn,sn,uid pres,eq,sub access to attrs=userPassword by dn.exact="cn=Manager,c=US" write @@ -64,8 +68,12 @@ suffix "" directory ./testrun/db.2.a rootdn "cn=Manager,c=US" rootpw secret -index objectClass eq -index cn,sn,uid pres,eq,sub +#bdb#index objectClass eq +#bdb#index cn,sn,uid pres,eq,sub +#hdb#index objectClass eq +#hdb#index cn,sn,uid pres,eq,sub +#ldbm#index objectClass eq +#ldbm#index cn,sn,uid pres,eq,sub access to attrs=userPassword by self =wx diff --git a/tests/data/slapd-ppolicy.conf b/tests/data/slapd-ppolicy.conf index debfa68fa2..f58e536ff5 100644 --- a/tests/data/slapd-ppolicy.conf +++ b/tests/data/slapd-ppolicy.conf @@ -38,7 +38,9 @@ suffix "dc=example,dc=com" directory ./testrun/db.1.a rootdn "cn=Manager,dc=example,dc=com" rootpw secret -index objectClass eq +#bdb#index objectClass eq +#hdb#index objectClass eq +#ldbm#index objectClass eq overlay ppolicy ppolicy_default "cn=Standard Policy,ou=Policies,dc=example,dc=com" ppolicy_use_lockout diff --git a/tests/data/slapd-proxycache.conf b/tests/data/slapd-proxycache.conf index eff45cd454..1fac77c7d1 100644 --- a/tests/data/slapd-proxycache.conf +++ b/tests/data/slapd-proxycache.conf @@ -50,9 +50,15 @@ proxytemplate (sn=) 0 @CACHETTL@ proxytemplate (uid=) 1 @CACHETTL@ proxytemplate (mail=) 0 @CACHETTL@ -cachesize 20 +#bdb#cachesize 20 +#hdb#cachesize 20 +#ldbm#cachesize 20 directory ./testrun/db.2.a -index objectClass eq -index cn,sn,uid,mail pres,eq,sub +#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 +#ldbm#index objectClass eq +#ldbm#index cn,sn,uid,mail pres,eq,sub #monitor#database monitor diff --git a/tests/data/slapd-pw.conf b/tests/data/slapd-pw.conf index 4d7d3c85d5..e03f205d17 100644 --- a/tests/data/slapd-pw.conf +++ b/tests/data/slapd-pw.conf @@ -37,8 +37,12 @@ suffix "dc=example,dc=com" directory ./testrun/db.1.a rootdn "cn=Manager,dc=example,dc=com" rootpw secret -index objectClass eq -index cn,sn,uid pres,eq,sub +#bdb#index objectClass eq +#bdb#index cn,sn,uid pres,eq,sub +#hdb#index objectClass eq +#hdb#index cn,sn,uid pres,eq,sub +#ldbm#index objectClass eq +#ldbm#index cn,sn,uid pres,eq,sub # # normal installations should protect root dse, diff --git a/tests/data/slapd-unique.conf b/tests/data/slapd-unique.conf index 44794dc378..8d16feb035 100644 --- a/tests/data/slapd-unique.conf +++ b/tests/data/slapd-unique.conf @@ -39,8 +39,12 @@ suffix "o=unique" directory ./testrun/db.1.a rootdn "cn=Manager,o=unique" rootpw secret -index objectClass eq -index cn,sn,uid pres,eq,sub +#bdb#index objectClass eq +#bdb#index cn,sn,uid pres,eq,sub +#hdb#index objectClass eq +#hdb#index cn,sn,uid pres,eq,sub +#ldbm#index objectClass eq +#ldbm#index cn,sn,uid pres,eq,sub overlay unique unique_ignore o cn sn ou objectClass diff --git a/tests/data/slapd-whoami.conf b/tests/data/slapd-whoami.conf index cc82bbcafb..c24b781629 100644 --- a/tests/data/slapd-whoami.conf +++ b/tests/data/slapd-whoami.conf @@ -57,7 +57,11 @@ suffix "dc=example,dc=com" directory ./testrun/db.1.a rootdn "cn=Manager,dc=example,dc=com" rootpw secret -index objectClass eq -index cn,sn,uid pres,eq,sub +#bdb#index objectClass eq +#bdb#index cn,sn,uid pres,eq,sub +#hdb#index objectClass eq +#hdb#index cn,sn,uid pres,eq,sub +#ldbm#index objectClass eq +#ldbm#index cn,sn,uid pres,eq,sub #monitor#database monitor -- 2.39.5