mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
parent
b7c0c9335a
commit
a356385f2d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user