diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2014-07-25 12:39:48 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2014-07-25 13:27:33 +0200 |
commit | c475c093c9524353be0fbc1d5690a081b0c56cdc (patch) | |
tree | 38e3905c8bfacf5e0ac6711beafdf16c7606895e /ipalib | |
parent | d3638438fce1a9d1e07c2be3b8f43befb07a6b40 (diff) | |
download | freeipa-c475c093c9524353be0fbc1d5690a081b0c56cdc.tar.gz freeipa-c475c093c9524353be0fbc1d5690a081b0c56cdc.tar.xz freeipa-c475c093c9524353be0fbc1d5690a081b0c56cdc.zip |
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>
Diffstat (limited to 'ipalib')
-rw-r--r-- | ipalib/plugins/baseldap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/baseldap.py b/ipalib/plugins/baseldap.py index 610b9b0f1..865a357bb 100644 --- a/ipalib/plugins/baseldap.py +++ b/ipalib/plugins/baseldap.py @@ -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 |