12 echo "running defines.sh $SRCDIR $BDB2"
14 . $SRCDIR/scripts/defines.sh $SRCDIR $BDB2
16 echo "Datadir is $DATADIR"
18 echo "Cleaning up in $DBDIR..."
22 echo "Running ldif2ldbm to build slapd database..."
23 $LDIF2LDBM -f $CONF -i $LDIF -e ../servers/slapd/tools
26 echo "ldif2ldbm failed!"
30 echo "Starting slapd on TCP/IP port $PORT..."
31 $SLAPD -f $CONF -p $PORT -d $LVL $TIMING > $MASTERLOG 2>&1 &
34 echo "Waiting 5 seconds for slapd to start..."
37 echo "Using tester for concurrent server access..."
38 $SLAPDTESTER -b "$BASEDN" -d "$DATADIR" -h localhost -p $PORT -D "$MANAGERDN" -w $PASSWD -l 50
42 echo "slapd-tester failed!"
46 echo "Using ldapsearch to retrieve all the entries..."
47 $LDAPSEARCH -L -S "" -b "$BASEDN" -h localhost -p $PORT \
48 'objectClass=*' > $SEARCHOUT 2>&1
54 echo "ldapsearch failed!"
58 echo "Comparing retrieved entries to LDIF file used to create database"
61 echo "comparison failed - database was not created correctly"
65 echo ">>>>> Test succeeded"