Skip to content
Snippets Groups Projects
Commit c49960df authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Add infrastructure for reindex testing

parent a73b210d
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,3 @@ suffix "o=University of Michigan, c=US"
directory ./test-db
rootdn "cn=Manager, o=University of Michigan, c=US"
rootpw secret
index objectClass eq
index cn,sn,uid pres,eq,sub
dbnosync
dbnolocking
# $OpenLDAP$
#
# stand-alone slapd config -- for testing
# with indexing
#
#include ./data/slapd.at.conf
#include ./data/slapd.oc.conf
include ./schema/core.schema
include ./schema/cosine.schema
include ./schema/inetorgperson.schema
#include ./schema/nis.schema
schemacheck on
pidfile ./test-db/slapd.pid
argsfile ./test-db/slapd.args
#######################################################################
# ldbm database definitions
#######################################################################
database ldbm
suffix "o=University of Michigan, c=US"
directory ./test-db
rootdn "cn=Manager, o=University of Michigan, c=US"
rootpw secret
index objectClass eq
index cn,sn,uid pres,eq,sub
dbnosync
dbnolocking
......@@ -13,7 +13,8 @@ if test "$BACKEND" = "bdb2" ; then
REFSLAVECONF=$DATADIR/slapd-bdb2-ref-slave.conf
TIMING="-t"
else
CONF=$DATADIR/slapd-master.conf
CONF=$DATADIR/slapd.conf
MCONF=$DATADIR/slapd-master.conf
PWCONF=$DATADIR/slapd-pw.conf
ACLCONF=$DATADIR/slapd-acl.conf
MASTERCONF=$DATADIR/slapd-repl-master.conf
......
......@@ -18,6 +18,7 @@ echo "Cleaning up in $DBDIR..."
rm -f $DBDIR/[!C]*
echo "Running slapadd to build slapd database..."
# $SLAPADD -f $MCONF -l $LDIF
$SLAPADD -f $CONF -l $LDIF
RC=$?
if test $RC != 0 ; then
......@@ -25,6 +26,14 @@ if test $RC != 0 ; then
exit $RC
fi
# echo "Running slapindex to index slapd database..."
# $SLAPINDEX -f $CONF
# RC=$?
# if test $RC != 0 ; then
# echo "slapindex failed ($RC)!"
# exit $RC
# fi
echo "Starting slapd on TCP/IP port $PORT..."
$SLAPD -f $CONF -h $MASTERURI -d $LVL $TIMING > $MASTERLOG 2>&1 &
PID=$!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment