From e40e7fc6bf0f3dab9f4942741dac6ce188f8535c Mon Sep 17 00:00:00 2001 From: Jennifer Sutton Date: Tue, 3 Sep 2024 12:32:14 +1200 Subject: =?UTF-8?q?python3:=20Remove=20Python=202=E2=80=93only=20call=20to?= =?UTF-8?q?=20decode()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit AttributeError: 'str' object has no attribute 'decode' BUG: https://bugzilla.samba.org/show_bug.cgi?id=15852 Signed-off-by: Jennifer Sutton Reviewed-by: Douglas Bagnall --- python/samba/join.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/samba/join.py b/python/samba/join.py index 7b1fe84d448..0b5a468e6e6 100644 --- a/python/samba/join.py +++ b/python/samba/join.py @@ -1389,7 +1389,7 @@ class DCJoinContext(object): objectAttr = lsa.ObjectAttribute() objectAttr.sec_qos = lsa.QosInfo() - pol_handle = lsaconn.OpenPolicy2(''.decode('utf-8'), + pol_handle = lsaconn.OpenPolicy2('', objectAttr, security.SEC_FLAG_MAXIMUM_ALLOWED) info = lsa.TrustDomainInfoInfoEx() -- cgit v1.2.3