2 # test some simple LDAP and CLDAP operations
5 .
$incdir/test_functions.sh
8 for options
in "" "--option=socket:testnonblock=true" "-U\$USERNAME%\$PASSWORD --option=socket:testnonblock=true" "-U\$USERNAME%\$PASSWORD"; do
9 plantest
"TESTING PROTOCOL $p with options $options" dc ..
/testprogs
/blackbox
/test_ldb.sh
$p \
$SERVER $options
11 # see if we support ldaps
12 if grep ENABLE_GNUTLS
.1 include
/config.h
> /dev
/null
; then
14 for options
in "" "-U\$USERNAME%\$PASSWORD"; do
15 plantest
"TESTING PROTOCOL $p with options $options" dc ..
/testprogs
/blackbox
/test_ldb.sh
$p \
$SERVER $options
18 for t
in LDAP-CLDAP LDAP-BASIC LDAP-SCHEMA LDAP-UPTODATENESS
20 plantest
"$t" dc bin
/smbtorture
$TORTURE_OPTIONS "-U\$USERNAME%\$PASSWORD" //\
$SERVER/_none_
$t
23 # only do the ldb tests when not in quick mode - they are quite slow, and ldb
24 # is now pretty well tested by the rest of the quick tests anyway
25 test "$TORTURE_QUICK" = "yes" ||
{
28 plantest
"ldb" dc $LDBDIR/tests
/test-tdb.sh
31 SCRIPTDIR
=..
/testprogs
/ejs
33 plantest
"ejs ldap" dc $SCRIPTDIR/ldap.js
$CONFIGURATION \
$SERVER -U\
$USERNAME%\
$PASSWORD