summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2014-07-25 12:39:48 +0200
committerPetr Vobornik <pvoborni@redhat.com>2014-07-25 13:27:33 +0200
commitc475c093c9524353be0fbc1d5690a081b0c56cdc (patch)
tree38e3905c8bfacf5e0ac6711beafdf16c7606895e
parentd3638438fce1a9d1e07c2be3b8f43befb07a6b40 (diff)
downloadfreeipa-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>
-rw-r--r--ipalib/plugins/baseldap.py2
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