From c2d56e2aaeef74c9a01b94e4c7b82ad3f14cfb37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD=20=D0=94=D0=B7=D1=8E=D0=B1=D0=B5?= =?UTF-8?q?=D0=BD=D0=BA=D0=BE?= Date: Wed, 15 Sep 2021 11:03:03 +0300 Subject: [PATCH] Fixed getMachine --- pym/cl_ldap.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pym/cl_ldap.py b/pym/cl_ldap.py index 8cc7c1e..0178857 100644 --- a/pym/cl_ldap.py +++ b/pym/cl_ldap.py @@ -14935,7 +14935,6 @@ with another option.")) attributes = [x[0] for x in data] retrAttrs = [x[1] for x in data] retClVars = False - #TODO check encoding searchRes = self.getQueryLDAP(service, "computers", searchAttr, searchStr, retrAttrs) if searchRes == False: @@ -14960,14 +14959,14 @@ with another option.")) data.append((attrName, value)) flagFirst = True else: - data.append(("", value.decode("UTF-8"))) + data.append(("", value)) if service == "samba" and attr == "gidNumber": memberGroups = self._getUserMemberGroups(machName, service) attrApp = _("Supplementary groups") if service == "samba": if value: - memberGroups.insert(0, value.decode("UTF-8")) + memberGroups.insert(0, value) flagFirst = False for member_group in memberGroups: if not flagFirst: