mirror of
https://github.com/samba-team/samba.git
synced 2025-03-10 12:58:35 +03:00
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)
This commit is contained in:
parent
0474005d07
commit
32cdb5aa31
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user