baseldap: return 'none' attr level right as unicode string
Returning non-unicode causes serialization into base64 which causes havoc in Web UI. https://fedorahosted.org/freeipa/ticket/4454 Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
1 parent
d3638438fc
commit
c475c093c9
1 file changed
+1
-1
@@ -213,7 +213,7 @@ def get_effective_rights(ldap, dn, attrs=None):
|
||||
if v == 'none':
|
||||
# the string "none" means "no rights found"
|
||||
# see https://fedorahosted.org/freeipa/ticket/4359
|
||||
v = ''
|
||||
v = u''
|
||||
rdict[k.strip().lower()] = v
|
||||
|
||||
return rdict
|
||||
|
||||
Reference in new issue
Block a user