6 echo "Cleaning up in $DBDIR..."
10 echo "Running ldif2ldbm to build slapd database..."
11 $LDIF2LDBM -f $CONF -i $LDIF -e ../servers/slapd/tools
14 echo "ldif2ldbm failed!"
18 echo "Starting slapd on TCP/IP port $PORT..."
19 $SLAPD -f $CONF -p $PORT -d 1 > $MASTERLOG 2>&1 &
22 echo "Using ldapsearch to retrieve all the entries..."
23 for i in 0 1 2 3 4 5; do
24 $LDAPSEARCH -L -S "" -b "$BASEDN" -h localhost -p $PORT \
25 'objectClass=*' > $SEARCHOUT 2>&1
28 echo "Waiting 5 seconds for slapd to start..."
36 echo "ldapsearch failed!"
40 echo "Comparing retrieved entries to LDIF file used to create database"
43 echo "comparison failed - database was not created correctly"
47 echo ">>>>> Test succeeded"