1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-23 11:33:16 +03:00

python:tests: Fix group_edit test with system libldb

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Sun Jun 20 22:52:05 UTC 2021 on sn-devel-184
This commit is contained in:
Andreas Schneider
2021-06-17 15:02:59 +02:00
committed by Andrew Bartlett
parent 084e8616a8
commit c09a56ea20

View File

@@ -13,6 +13,11 @@ SERVER="$1"
USERNAME="$2" USERNAME="$2"
PASSWORD="$3" PASSWORD="$3"
samba_ldbsearch=ldbsearch
if test -x $BINDIR/ldbsearch; then
samba_ldbsearch=$BINDIR/ldbsearch
fi
STpath=$(pwd) STpath=$(pwd)
. $STpath/testprogs/blackbox/subunit.sh . $STpath/testprogs/blackbox/subunit.sh
@@ -97,7 +102,7 @@ EOF
} }
get_attribute_base64() { get_attribute_base64() {
${STpath}/bin/ldbsearch '(sAMAccountName=testgroup1)' displayName \ $samba_ldbsearch '(sAMAccountName=testgroup1)' displayName \
-H "ldap://$SERVER" "-U$USERNAME" "--password=$PASSWORD" -H "ldap://$SERVER" "-U$USERNAME" "--password=$PASSWORD"
} }