From 084e8616a898fd9d645ebcdf4721a9c72631d8d3 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 17 Jun 2021 15:00:21 +0200 Subject: [PATCH] python:tests: Fix user_edit test with system libldb Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- python/samba/tests/samba_tool/user_edit.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/python/samba/tests/samba_tool/user_edit.sh b/python/samba/tests/samba_tool/user_edit.sh index 7f0140ce6dd..cff646955db 100755 --- a/python/samba/tests/samba_tool/user_edit.sh +++ b/python/samba/tests/samba_tool/user_edit.sh @@ -13,6 +13,11 @@ SERVER="$1" USERNAME="$2" PASSWORD="$3" +samba_ldbsearch=ldbsearch +if test -x $BINDIR/ldbsearch; then + samba_ldbsearch=$BINDIR/ldbsearch +fi + STpath=$(pwd) . $STpath/testprogs/blackbox/subunit.sh @@ -65,7 +70,7 @@ EOF } get_attribute_base64() { - ${STpath}/bin/ldbsearch '(sAMAccountName=sambatool1)' displayName \ + $samba_ldbsearch '(sAMAccountName=sambatool1)' displayName \ -H "ldap://$SERVER" "-U$USERNAME" "--password=$PASSWORD" } -- 2.47.3