4 if test $# -eq 0 ; then
9 if test $# -eq 1 ; then
13 echo "running defines.sh $SRCDIR $BACKEND"
15 . $SRCDIR/scripts/defines.sh
17 echo "Datadir is $DATADIR"
19 echo "Cleaning up in $DBDIR..."
23 echo "Starting slapd on TCP/IP port $PORT..."
24 $SLAPD -f $CONF -h $MASTERURI -d $LVL $TIMING > $MASTERLOG 2>&1 &
27 echo "Using ldapsearch to retrieve all the entries..."
28 for i in 0 1 2 3 4 5; do
29 $LDAPSEARCH -b "" -s base -h localhost:$PORT '+' > $SEARCHOUT 2>&1
31 if test $RC = 1 ; then
32 echo "Waiting 5 seconds for slapd to start..."
41 if test $RC != 0 ; then
42 echo ">>>>> Test failed"
44 if grep PRNG $SEARCHOUT; then
47 You need a pseudo random number generator, such as a /dev/urandom,
48 /dev/urandom, or an entropy gathering daemon. Alternatively, you
49 can use openssl to generate a $HOME/.rnd file.
50 See www.openssl.org for more details on how to do this.
54 echo ">>>>> Test succeeded"