2 # test some simple LDAP and CLDAP operations
6 Usage: test_ldap.sh SERVER USERNAME PASSWORD
11 # see if we support ldaps
12 if grep HAVE_LIBGNUTLS
.1 include
/config.h
> /dev
/null
&&
13 test -n "$CONFFILE" && grep tls.enabled.
=yes $CONFFILE > /dev
/null
; then
14 PROTOCOLS
="ldap ldaps"
24 .
$incdir/test_functions.sh
27 for p
in $PROTOCOLS; do
28 for options
in "" "--option=socket:testnonblock=true" "-U$USERNAME%$PASSWORD --option=socket:testnonblock=true" "-U$USERNAME%$PASSWORD"; do
29 testit
"TESTING PROTOCOL $p with options $options" ..
/testprogs
/blackbox
/test_ldb.sh
$p $options
33 for t
in LDAP-CLDAP LDAP-BASIC LDAP-SCHEMA LDAP-UPTODATENESS
35 testit
"$t" bin
/smbtorture
$TORTURE_OPTIONS "-U$USERNAME%$PASSWORD" //$SERVER/_none_
$t
38 # only do the ldb tests when not in quick mode - they are quite slow, and ldb
39 # is now pretty well tested by the rest of the quick tests anyway
40 test "$TORTURE_QUICK" = "yes" ||
{
43 testit
"ldb tests" $LDBDIR/tests
/test-tdb.sh
46 SCRIPTDIR
=..
/testprogs
/ejs
48 testit
"ejs ldap test" $SCRIPTDIR/ldap.js
$CONFIGURATION $SERVER -U$USERNAME%$PASSWORD