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
--- /dev/null
+# $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
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
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
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=$!