summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2021-06-17 15:00:21 +0200
committerAndrew Bartlett <abartlet@samba.org>2021-06-20 22:06:36 +0000
commit084e8616a898fd9d645ebcdf4721a9c72631d8d3 (patch)
tree7afebee63e9807b46602eafb8549c57ba77bbf9f /python
parentf47ea8716f02fd4de44d3e0edbaeb26a9451f90d (diff)
downloadsamba-084e8616a898fd9d645ebcdf4721a9c72631d8d3.tar.gz
python:tests: Fix user_edit test with system libldb
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
-rwxr-xr-xpython/samba/tests/samba_tool/user_edit.sh7
1 files changed, 6 insertions, 1 deletions
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"
}