]> git.sur5r.net Git - openldap/blobdiff - tests/scripts/test057-memberof-refint
ITS#5810: support back-ldif
[openldap] / tests / scripts / test057-memberof-refint
index 989b9f4bb8990c82269735bff91ac02a692f9bba..f392ec916c89162cb95e24f7afb7037a267c524b 100755 (executable)
@@ -27,7 +27,7 @@ if test $REFINT = refintno; then
        exit 0
 fi 
 
-if test "$BACKEND" != "hdb" ; then
+if test "$BACKEND" = "bdb" ; then
        echo "Test does not support $BACKEND"
        exit 0
 fi
@@ -84,6 +84,16 @@ EOF
        fi
 fi
 
+bdb_conf=""
+case $BACKEND in bdb | hdb)
+bdb_conf="olcDbCacheSize: 1000
+olcDbIndex: objectClass eq
+olcDbIndex: cn pres,eq,sub
+olcDbIndex: uid pres,eq,sub
+olcDbIndex: sn pres,eq,sub
+olcDbMode: 384"
+esac
+
 echo "Running ldapadd to build slapd config database..."
 $LDAPADD -h $LOCALHOST -p $PORT1 -D 'cn=config' -w `cat $CONFIGPWF` \
        >> $TESTOUT 2>&1 <<EOF
@@ -96,12 +106,7 @@ olcRootDN: cn=Manager,$BASEDN
 olcRootPW:: c2VjcmV0
 olcMonitoring: TRUE
 olcDbDirectory: $TESTDIR/db.1.a/
-olcDbCacheSize: 1000
-olcDbIndex: objectClass eq
-olcDbIndex: cn pres,eq,sub
-olcDbIndex: uid pres,eq,sub
-olcDbIndex: sn pres,eq,sub
-olcDbMode: 384
+$bdb_conf
 
 # {0}memberof, {1}$BACKEND, config
 dn: olcOverlay={0}memberof,olcDatabase={1}$BACKEND,cn=config