summaryrefslogtreecommitdiffstats
path: root/ipaserver/plugins/ldap2.py
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2017-01-13 12:40:20 +0100
committerMartin Basti <mbasti@redhat.com>2017-01-31 18:33:27 +0100
commitb37d18288d40b4ec0b5a8df676456e09ae5f26c1 (patch)
tree9ad18b7a80bdaafa5e07ed09b61305d758cbafa7 /ipaserver/plugins/ldap2.py
parent49333058c869dd4bd654a7974e6e144ffd3f0dc3 (diff)
downloadfreeipa-b37d18288d40b4ec0b5a8df676456e09ae5f26c1.tar.gz
freeipa-b37d18288d40b4ec0b5a8df676456e09ae5f26c1.tar.xz
freeipa-b37d18288d40b4ec0b5a8df676456e09ae5f26c1.zip
py3: can_read: attributelevelrights is already string
Remove decode() as it causes error in py3 because the attribute is already string not bytes https://fedorahosted.org/freeipa/ticket/4985 Reviewed-By: Christian Heimes <cheimes@redhat.com>
Diffstat (limited to 'ipaserver/plugins/ldap2.py')
-rw-r--r--ipaserver/plugins/ldap2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipaserver/plugins/ldap2.py b/ipaserver/plugins/ldap2.py
index c4b7580d2..71c095d05 100644
--- a/ipaserver/plugins/ldap2.py
+++ b/ipaserver/plugins/ldap2.py
@@ -310,7 +310,7 @@ class ldap2(CrudBackend, LDAPClient):
attrs = self.get_effective_rights(dn, [attr])
if 'attributelevelrights' in attrs:
- attr_rights = attrs.get('attributelevelrights')[0].decode('UTF-8')
+ attr_rights = attrs.get('attributelevelrights')[0]
(attr, rights) = attr_rights.split(':')
if 'w' in rights:
return True