From: Andreas Schneider Date: Thu, 22 Dec 2022 13:47:25 +0000 (+0100) Subject: python:tests: Use system ldbsearch if we build with system libldb X-Git-Tag: talloc-2.4.0~119 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11be7d802d33d0376ec5c36ddd8d30d32b088a1e;p=thirdparty%2Fsamba.git python:tests: Use system ldbsearch if we build with system libldb Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher --- diff --git a/python/samba/tests/samba_tool/computer_edit.sh b/python/samba/tests/samba_tool/computer_edit.sh index a52128c6589..500a00d9a34 100755 --- a/python/samba/tests/samba_tool/computer_edit.sh +++ b/python/samba/tests/samba_tool/computer_edit.sh @@ -15,6 +15,9 @@ PASSWORD="$3" STpath=$(pwd) . $STpath/testprogs/blackbox/subunit.sh +. "${STpath}/testprogs/blackbox/common_test_fns.inc" + +ldbsearch=$(system_or_builddir_binary ldbsearch "${BINDIR}") display_name="Björns laptop" display_name_b64="QmrDtnJucyBsYXB0b3A=" @@ -70,7 +73,7 @@ EOF get_attribute_base64() { - ${STpath}/bin/ldbsearch '(sAMAccountName=testmachine1$)' displayName \ + ${ldbsearch} '(sAMAccountName=testmachine1$)' displayName \ -H "ldap://$SERVER" "-U$USERNAME" "--password=$PASSWORD" }