summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-02-05 20:57:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:51:48 -0500
commit289a5994a9dd8948ca8d652434c5399795a77493 (patch)
treeb70de67c943e4b6fb58a4d4dfb204ebf4b8982fa
parent3721bca79dc6ff409085a2fc40cbd060d25191d4 (diff)
downloadsamba-289a5994a9dd8948ca8d652434c5399795a77493.tar.gz
samba-289a5994a9dd8948ca8d652434c5399795a77493.tar.bz2
samba-289a5994a9dd8948ca8d652434c5399795a77493.zip
r13355: check controls are correctly exported
(This used to be commit 07fa55db32dcb93bfb4406baca0cfba31d3bc189)
-rwxr-xr-xsource4/script/tests/test_ldap.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/script/tests/test_ldap.sh b/source4/script/tests/test_ldap.sh
index fc2b27028f..f8657de5ec 100755
--- a/source4/script/tests/test_ldap.sh
+++ b/source4/script/tests/test_ldap.sh
@@ -44,6 +44,13 @@ for p in $PROTOCOLS; do
failed=`expr $failed + 1`
fi
+ echo "Check rootDSE for Controls"
+ nentries=`bin/ldbsearch $options $CONFIGURATION -H $p://$SERVER -s base -b "" '(objectclass=*)' | grep -i supportedControl | wc -l`
+ if [ $nentries -lt 4 ]; then
+ echo "Should have found at least 4 entries"
+ failed=`expr $failed + 1`
+ fi
+
echo "Test Paged Results Control"
nentries=`bin/ldbsearch $options $CONFIGURATION -H $p://$SERVER --controls=paged_results:1:5 '(objectclass=user)' | grep sAMAccountName | wc -l`
if [ $nentries -lt 1 ]; then