From: Andreas Schneider Date: Thu, 1 Dec 2022 14:49:43 +0000 (+0100) Subject: nsswitch:tests: Use ldb(modify|search) from the system X-Git-Tag: talloc-2.4.0~412 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b97d31abb44717a35951a9fcbef0248a7fb150af;p=thirdparty%2Fsamba.git 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 Reviewed-by: Volker Lendecke Autobuild-User(master): Volker Lendecke Autobuild-Date(master): Mon Dec 5 09:36:40 UTC 2022 on sn-devel-184 --- 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