]> git.sur5r.net Git - openldap/commitdiff
add indexes (when supported)
authorPierangelo Masarati <ando@openldap.org>
Sun, 16 Nov 2008 22:57:38 +0000 (22:57 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sun, 16 Nov 2008 22:57:38 +0000 (22:57 +0000)
tests/scripts/test049-sync-config

index 5edbc54963dfc78aa703a6585a8169857e2b2c40..1eac3fa485836efd3018d226b3e47850b2b45925 100755 (executable)
@@ -263,6 +263,24 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
+case $BACKEND in
+bdb | hdb)
+       $LDAPMODIFY -D cn=config -H $URI1 -y $CONFIGPWF <<EOF >>$TESTOUT 2>&1
+dn: olcDatabase={1}$BACKEND,cn=config
+changetype: modify
+add: olcDbIndex
+olcDbIndex: objectClass,entryUUID,entryCSN eq
+olcDbIndex: cn,uid pres,eq,sub
+EOF
+       RC=$?
+       if test $RC != 0 ; then
+               echo "ldapadd modify for database config ($RC)!"
+               test $KILLSERVERS != no && kill -HUP $KILLPIDS
+               exit $RC
+       fi
+       ;;
+esac
+
 echo "Using ldapadd to populate producer..."
 $LDAPADD -D "$MANAGERDN" -H $URI1 -w $PASSWD -f $LDIFORDERED \
        >> $TESTOUT 2>&1