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:
Petr Vobornik 2014-07-25 12:39:48 +02:00
parent b7c0c9335a
commit a356385f2d

View File

@ -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