From: Noel Power Date: Thu, 27 Sep 2018 17:16:49 +0000 (+0100) Subject: python/samba/netcmd: PY3 only possible to decode bytes X-Git-Tag: tdb-1.3.17~1251 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ea6cb187305877af33dc629a4cf894e572e6a13;p=thirdparty%2Fsamba.git python/samba/netcmd: PY3 only possible to decode bytes Signed-off-by: Noel Power Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/netcmd/domain.py b/python/samba/netcmd/domain.py index f022e3718a6..2278fb5f318 100644 --- a/python/samba/netcmd/domain.py +++ b/python/samba/netcmd/domain.py @@ -1848,7 +1848,7 @@ class DomainTrustCommand(Command): objectAttr = lsa.ObjectAttribute() objectAttr.sec_qos = lsa.QosInfo() - policy = conn.OpenPolicy2(''.decode('utf-8'), + policy = conn.OpenPolicy2(b''.decode('utf-8'), objectAttr, policy_access) info = conn.QueryInfoPolicy2(policy, lsa.LSA_POLICY_INFO_DNS)