git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b47b55
)
Test the behaviour of mixed domain_scope and search_options controls.
author
Andrew Bartlett
<abartlet@samba.org>
Tue, 15 Jan 2008 21:58:07 +0000
(08:58 +1100)
committer
Andrew Bartlett
<abartlet@samba.org>
Tue, 15 Jan 2008 21:58:07 +0000
(08:58 +1100)
Andrew Bartlett
testprogs/blackbox/test_ldb.sh
patch
|
blob
|
history
diff --git
a/testprogs/blackbox/test_ldb.sh
b/testprogs/blackbox/test_ldb.sh
index e35d3547d9d4c30c48c198d17864a6e493e5381e..4067a7fc4331a873ff2ab3657855705b6b73ad4d 100755
(executable)
--- 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