diff --git a/source4/script/tests/test_ldap.sh b/source4/script/tests/test_ldap.sh index b3d44a639e2..a457f527bd1 100755 --- a/source4/script/tests/test_ldap.sh +++ b/source4/script/tests/test_ldap.sh @@ -10,7 +10,7 @@ fi # see if we support ldaps if grep HAVE_LIBGNUTLS.1 include/config.h > /dev/null && - grep tls.enabled.=yes $CONFFILE > /dev/null; then + test -n "$CONFFILE" && grep tls.enabled.=yes $CONFFILE > /dev/null; then PROTOCOLS="ldap ldaps" else PROTOCOLS="ldap"