From 289a5994a9dd8948ca8d652434c5399795a77493 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sun, 5 Feb 2006 20:57:15 +0000 Subject: r13355: check controls are correctly exported (This used to be commit 07fa55db32dcb93bfb4406baca0cfba31d3bc189) --- source4/script/tests/test_ldap.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source4/script/tests/test_ldap.sh') 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 -- cgit