diff options
author | Andrew Bartlett <abartlet@samba.org> | 2007-03-05 00:18:38 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:49:13 -0500 |
commit | 32cdb5aa3160255166ba3153d406b523023808d4 (patch) | |
tree | f6fa2bdf0806510151d5fef8b27eb435d1e17fbd /source4/script/tests | |
parent | 0474005d074163f95e03580e5b1da7f7efe4664a (diff) | |
download | samba-32cdb5aa3160255166ba3153d406b523023808d4.tar.gz samba-32cdb5aa3160255166ba3153d406b523023808d4.tar.bz2 samba-32cdb5aa3160255166ba3153d406b523023808d4.zip |
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)
Diffstat (limited to 'source4/script/tests')
-rwxr-xr-x | source4/script/tests/test_ldap.sh | 22 |
1 files 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 |