]> git.sur5r.net Git - openldap/commitdiff
Grep for PRNG message in $SEARCHOUT to make sure error is caught.
authorRandy Kunkee <kunkee@openldap.org>
Sun, 10 Sep 2000 19:38:21 +0000 (19:38 +0000)
committerRandy Kunkee <kunkee@openldap.org>
Sun, 10 Sep 2000 19:38:21 +0000 (19:38 +0000)
tests/scripts/test000-rootdse

index 47ddc2abe52eeed5c35e7773ced001fa7d6d2235..d11c5c44ca45be00d24a9de901d56126478bcf51 100755 (executable)
@@ -41,7 +41,18 @@ cat $SEARCHOUT
 if test $RC != 0 ; then
        echo ">>>>> Test failed"
 else
-       echo ">>>>> Test succeeded"
+       if grep PRNG $SEARCHOUT; then
+           cat << EOF
+
+You need a pseudo random number generator, such as a /dev/urandom,
+/dev/urandom, or an entropy gathering daemon.  Alternatively, you
+can use openssl to generate a $HOME/.rnd file.
+See www.openssl.org for more details on how to do this.
+EOF
+       RC=-1
+       else
+           echo ">>>>> Test succeeded"
+       fi
 fi