mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-14 10:53:22 -05:00
add indexes (when supported)
This commit is contained in:
parent
f61459580d
commit
89cec8c881
1 changed files with 18 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue