r13605: Use $BASEDN to ensure this works outside of the 'make test' rig.
authorAndrew Bartlett <abartlet@samba.org>
Wed, 22 Feb 2006 00:18:07 +0000 (00:18 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:51:58 +0000 (13:51 -0500)
Andrew Bartlett

source/script/tests/test_ldap.sh

index f8657de5ec61ba765cdbf922c4fa269e8b28f298..ee97ea306fc195bd3d71c76a4e0f05d66d54493d 100755 (executable)
@@ -73,7 +73,7 @@ for p in $PROTOCOLS; do
     fi
 
     echo "Test Attribute Scope Query Control"
-    nentries=`bin/ldbsearch $options $CONFIGURATION -H $p://$SERVER --controls=asq:1:member -s base -b 'CN=Administrators,CN=Builtin,DC=samba,DC=example,DC=com' | grep sAMAccountName | wc -l`
+    nentries=`bin/ldbsearch $options $CONFIGURATION -H $p://$SERVER --controls=asq:1:member -s base -b "CN=Administrators,CN=Builtin,$BASEDN" | grep sAMAccountName | wc -l`
    if [ $nentries -lt 1 ]; then
        echo "Attribute Scope Query test returned 0 items"
        failed=`expr $failed + 1`