From 32cdb5aa3160255166ba3153d406b523023808d4 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 5 Mar 2007 00:18:38 +0000 Subject: r21692: Test with LDAP, but without the non-block testing. This is not compatible with the TLS layer at the moment. https://bugzilla.samba.org/show_bug.cgi?id=4431 Andrew Bartlett (This used to be commit 1e401286f94897f83d89d1a87027e988eb6deac5) --- source4/script/tests/test_ldap.sh | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/source4/script/tests/test_ldap.sh b/source4/script/tests/test_ldap.sh index 4a331724aa..a0a7fac3bf 100755 --- a/source4/script/tests/test_ldap.sh +++ b/source4/script/tests/test_ldap.sh @@ -8,13 +8,6 @@ EOF exit 1; fi -# see if we support ldaps -if grep HAVE_LIBGNUTLS.1 include/config.h > /dev/null > /dev/null; then - PROTOCOLS="ldap ldaps" -else - PROTOCOLS="ldap" -fi - SERVER="$1" USERNAME="$2" PASSWORD="$3" @@ -23,12 +16,17 @@ incdir=`dirname $0` . $incdir/test_functions.sh -for p in $PROTOCOLS; do - for options in "" "--option=socket:testnonblock=true" "-U$USERNAME%$PASSWORD --option=socket:testnonblock=true" "-U$USERNAME%$PASSWORD"; do - testit "TESTING PROTOCOL $p with options $options" ../testprogs/blackbox/test_ldb.sh $p $options - done +p=ldap +for options in "" "--option=socket:testnonblock=true" "-U$USERNAME%$PASSWORD --option=socket:testnonblock=true" "-U$USERNAME%$PASSWORD"; do + testit "TESTING PROTOCOL $p with options $options" ../testprogs/blackbox/test_ldb.sh $p $options done - +# see if we support ldaps +if grep ENABLE_GNUTLS.1 include/config.h > /dev/null; then + p=ldaps + for options in "" "-U$USERNAME%$PASSWORD"; do + testit "TESTING PROTOCOL $p with options $options" ../testprogs/blackbox/test_ldb.sh $p $options + done +fi for t in LDAP-CLDAP LDAP-BASIC LDAP-SCHEMA LDAP-UPTODATENESS do testit "$t" bin/smbtorture $TORTURE_OPTIONS "-U$USERNAME%$PASSWORD" //$SERVER/_none_ $t -- cgit