summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2022-12-01 15:49:43 +0100
committerVolker Lendecke <vl@samba.org>2022-12-05 09:36:40 +0000
commitb97d31abb44717a35951a9fcbef0248a7fb150af (patch)
tree920c39f006898a3c17749d7ca2829dadfca706af /nsswitch
parent5ea3a15be6896a0520382610e5d4ce6ac207aeec (diff)
downloadsamba-b97d31abb44717a35951a9fcbef0248a7fb150af.tar.gz
nsswitch:tests: Use ldb(modify|search) from the system
If Samba is built against the system libldb, use the system tools. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Mon Dec 5 09:36:40 UTC 2022 on sn-devel-184
Diffstat (limited to 'nsswitch')
-rwxr-xr-xnsswitch/tests/test_idmap_ad.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/nsswitch/tests/test_idmap_ad.sh b/nsswitch/tests/test_idmap_ad.sh
index 323aa1728d0..aef74bead96 100755
--- a/nsswitch/tests/test_idmap_ad.sh
+++ b/nsswitch/tests/test_idmap_ad.sh
@@ -16,8 +16,15 @@ TRUST_SERVER="$5"
TRUST_PASSWORD="$6"
wbinfo="$VALGRIND $BINDIR/wbinfo"
-ldbmodify="$VALGRIND $BINDIR/ldbmodify"
-ldbsearch="$VALGRIND $BINDIR/ldbsearch"
+ldbmodify="${VALGRIND} ldbmodify"
+if [ -x "${BINDIR}/ldbmodify" ]; then
+ ldbmodify="${VALGRIND} ${BINDIR}/ldbmodify"
+fi
+
+ldbsearch="${VALGRIND} ldbsearch"
+if [ -x "${BINDIR}/ldbsearch" ]; then
+ ldbsearch="${VALGRIND} ${BINDIR}/ldbsearch"
+fi
failed=0