diff options
author | Andreas Schneider <asn@samba.org> | 2022-12-04 19:46:36 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2022-12-05 07:19:35 +0000 |
commit | 7d8347e8900ae01fc7073a8b9647c37959dfbe7c (patch) | |
tree | e996b3f9f8092d9fe27d54a3b5024ab28ca0411b /testprogs | |
parent | 9a97e54f35af800c5ccb15e54399d8935bf4f70d (diff) | |
download | samba-7d8347e8900ae01fc7073a8b9647c37959dfbe7c.tar.gz |
testprogs: If built against system db use the system tools in ldapcmp_restoredc.sh
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'testprogs')
-rwxr-xr-x | testprogs/blackbox/ldapcmp_restoredc.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/testprogs/blackbox/ldapcmp_restoredc.sh b/testprogs/blackbox/ldapcmp_restoredc.sh index 831b992e960..bf3ba321d8f 100755 --- a/testprogs/blackbox/ldapcmp_restoredc.sh +++ b/testprogs/blackbox/ldapcmp_restoredc.sh @@ -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() |