9 echo "running defines.sh $SRCDIR"
11 . $SRCDIR/scripts/defines.sh $SRCDIR
13 echo "Datadir is $DATADIR"
15 echo "Cleaning up in $DBDIR..."
19 echo "Running ldif2ldbm to build slapd database..."
20 $LDIF2LDBM -f $CONF -i $LDIF -e ../servers/slapd/tools
23 echo "ldif2ldbm failed!"
27 echo "Starting slapd on TCP/IP port $PORT..."
28 $SLAPD -f $CONF -p $PORT -d 1 > $MASTERLOG 2>&1 &
31 echo "Using ldapsearch to retrieve all the entries..."
32 for i in 0 1 2 3 4 5; do
33 $LDAPSEARCH -L -S "" -b "$BASEDN" -h localhost -p $PORT \
34 'objectClass=*' > $SEARCHOUT 2>&1
37 echo "Waiting 5 seconds for slapd to start..."
45 echo "ldapsearch failed!"
49 echo "Comparing retrieved entries to LDIF file used to create database"
52 echo "comparison failed - database was not created correctly"
56 echo ">>>>> Test succeeded"