summaryrefslogtreecommitdiff
path: root/testprogs/blackbox/test_ldb.sh
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-01-16 08:58:07 +1100
committerAndrew Bartlett <abartlet@samba.org>2008-01-16 08:58:07 +1100
commit85c70212161f8cad3510ad81dce0d2e19e9d25fe (patch)
tree6d21c79f717893b200956bd82555f1c79fae37a2 /testprogs/blackbox/test_ldb.sh
parent0ec60cfd830536c8e525b98df85375f50af9c413 (diff)
downloadsamba-85c70212161f8cad3510ad81dce0d2e19e9d25fe.tar.gz
samba-85c70212161f8cad3510ad81dce0d2e19e9d25fe.tar.bz2
samba-85c70212161f8cad3510ad81dce0d2e19e9d25fe.zip
Test the behaviour of mixed domain_scope and search_options controls.
Andrew Bartlett (This used to be commit 89053bc564f1d736da48fbe20e7f8f244b0c67fa)
Diffstat (limited to 'testprogs/blackbox/test_ldb.sh')
-rwxr-xr-xtestprogs/blackbox/test_ldb.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/testprogs/blackbox/test_ldb.sh b/testprogs/blackbox/test_ldb.sh
index e35d3547d9..4067a7fc43 100755
--- a/testprogs/blackbox/test_ldb.sh
+++ b/testprogs/blackbox/test_ldb.sh
@@ -108,5 +108,12 @@ echo "Search Options Control Query test returned 0 items"
failed=`expr $failed + 1`
fi
+echo "Test Search Options Control with Domain Scope Control"
+nentries=`bin/ldbsearch $options $CONFIGURATION -H $p://$SERVER --controls=search_options:1:2,domain_scope:1 '(objectclass=crossRef)' | grep crossRef | wc -l`
+if [ $nentries -lt 1 ]; then
+echo "Search Options Control Query test returned 0 items"
+failed=`expr $failed + 1`
+fi
+
exit $failed