X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tests%2Fscripts%2Ftest057-memberof-refint;h=a36ba9eb2ba1045e92d0519143ac0bcc3f233751;hb=3479541ef3237807c2565d126cd00983c640c4ce;hp=8354ba98b89fac942047b56aad2f1e63d0738c79;hpb=ad4734a1b69a4126912013393dafb14f2cf2d0a6;p=openldap diff --git a/tests/scripts/test057-memberof-refint b/tests/scripts/test057-memberof-refint index 8354ba98b8..a36ba9eb2b 100755 --- a/tests/scripts/test057-memberof-refint +++ b/tests/scripts/test057-memberof-refint @@ -2,7 +2,7 @@ # $OpenLDAP$ ## This work is part of OpenLDAP Software . ## -## Copyright 1998-2010 The OpenLDAP Foundation. +## Copyright 1998-2011 The OpenLDAP Foundation. ## Portions Copyright 2008 Red Hat, Inc. ## All rights reserved. ## @@ -66,14 +66,16 @@ 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="# " ;; esac if [ "$MEMBEROF" = memberofmod ]; then - echo "Inserting memberof overlay on producer..." + echo "Inserting memberof overlay on provider..." $LDAPADD -D cn=config -H $URI1 -y $CONFIGPWF < $TESTOUT 2>&1 dn: cn=module,cn=config objectClass: olcModuleList @@ -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