]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
testprogs: If built against system db use the system tools in ldapcmp_restoredc.sh
authorAndreas Schneider <asn@samba.org>
Sun, 4 Dec 2022 18:46:36 +0000 (19:46 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 5 Dec 2022 07:19:35 +0000 (07:19 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
testprogs/blackbox/ldapcmp_restoredc.sh

index 831b992e960eb995dfe6797d8c775c23be108a12..bf3ba321d8f7159cb7c28eb55eb3d194f021edc5 100755 (executable)
@@ -15,10 +15,15 @@ shift 2
 
 . $(dirname $0)/subunit.sh
 
+ldbsearch="${VALGRIND} ldbsearch"
+if [ -x "${BINDIR}/ldbsearch" ]; then
+       ldbsearch="${VALGRIND} ${BINDIR}/ldbsearch"
+fi
+
 basedn()
 {
        SAMDB_PATH=$1
-       $BINDIR/ldbsearch -H $SAMDB_PATH --basedn='' --scope=base defaultNamingContext | grep defaultNamingContext | awk '{print $2}'
+       ${ldbsearch} -H $SAMDB_PATH --basedn='' --scope=base defaultNamingContext | grep defaultNamingContext | awk '{print $2}'
 }
 
 ldapcmp_with_orig()