1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-31 20:22:15 +03:00

python/samba/kcc: PY3 fix some str versus ldb.bytes comparisons

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Noel Power
2018-11-08 18:47:59 +00:00
committed by Noel Power
parent 744acb276c
commit 750540fd5c

View File

@ -669,7 +669,7 @@ class DirectoryServiceAgent(object):
if "options" in msg:
self.options = int(msg["options"][0])
if "msDS-isRODC" in msg and msg["msDS-isRODC"][0] == "TRUE":
if "msDS-isRODC" in msg and str(msg["msDS-isRODC"][0]) == "TRUE":
self.dsa_is_ro = True
else:
self.dsa_is_ro = False
@ -972,7 +972,7 @@ class NTDSConnection(object):
self.options = int(msg["options"][0])
if "enabledConnection" in msg:
if msg["enabledConnection"][0].upper().lstrip().rstrip() == "TRUE":
if str(msg["enabledConnection"][0]).upper().lstrip().rstrip() == "TRUE":
self.enabled = True
if "systemFlags" in msg:
@ -1353,7 +1353,7 @@ class Partition(NamingContext):
continue
if k == "Enabled":
if msg[k][0].upper().lstrip().rstrip() == "TRUE":
if str(msg[k][0]).upper().lstrip().rstrip() == "TRUE":
self.enabled = True
else:
self.enabled = False