]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python:tests: Use system ldbsearch if we build with system libldb
authorAndreas Schneider <asn@samba.org>
Thu, 22 Dec 2022 13:47:25 +0000 (14:47 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 23 Dec 2022 14:35:31 +0000 (14:35 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
python/samba/tests/samba_tool/computer_edit.sh

index a52128c6589d44bba0e51862c6de635eb8a69799..500a00d9a3460bd5998dc682669ee37b45f0e044 100755 (executable)
@@ -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"
 }