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
> /dev
/null
; then
13 PROTOCOLS
="ldap ldaps"
23 .
$incdir/test_functions.sh
26 for p
in $PROTOCOLS; do
27 for options
in "" "--option=socket:testnonblock=true" "-U$USERNAME%$PASSWORD --option=socket:testnonblock=true" "-U$USERNAME%$PASSWORD"; do
28 testit
"TESTING PROTOCOL $p with options $options" ..
/testprogs
/blackbox
/test_ldb.sh
$p $options
32 for t
in LDAP-CLDAP LDAP-BASIC LDAP-SCHEMA LDAP-UPTODATENESS
34 testit
"$t" bin
/smbtorture
$TORTURE_OPTIONS "-U$USERNAME%$PASSWORD" //$SERVER/_none_
$t
37 # only do the ldb tests when not in quick mode - they are quite slow, and ldb
38 # is now pretty well tested by the rest of the quick tests anyway
39 test "$TORTURE_QUICK" = "yes" ||
{
42 testit
"ldb tests" $LDBDIR/tests
/test-tdb.sh
45 SCRIPTDIR
=..
/testprogs
/ejs
47 testit
"ejs ldap test" $SCRIPTDIR/ldap.js
$CONFIGURATION $SERVER -U$USERNAME%$PASSWORD