Currently, in the ldap2py function, attribute values are attempted
to be converted to python friendly types.
It attempts to convert an attribute to boolean first, then fallback
as string. Any attribute value that is equal to 'TRUE' or 'FALSE'
are converted to boolean value.
Only 'enabled' attribute require this type of handling, and it is
already by enabled2py function. The additional handling on ldap2py
function should be removed.
Change-Id: Ifd1e91f98ae22a5e5f7b9b2ddbfddba156e16a6d
Closes-Bug: #1411478
(cherry picked from commit 5b82b8ab6fd181124b9fb0fdb5f8ab76ff715435)
Reviewed: https:/ /review. openstack. org/156006 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=027236c5815 f45a65f92be5e5d fa543bff1ae935
Committed: https:/
Submitter: Jenkins
Branch: stable/juno
commit 027236c5815f45a 65f92be5e5dfa54 3bff1ae935
Author: lin-hua-cheng <email address hidden>
Date: Tue Feb 10 17:27:55 2015 -0800
Don't try to convert LDAP attributes to boolean
Currently, in the ldap2py function, attribute values are attempted
to be converted to python friendly types.
It attempts to convert an attribute to boolean first, then fallback
as string. Any attribute value that is equal to 'TRUE' or 'FALSE'
are converted to boolean value.
Only 'enabled' attribute require this type of handling, and it is
already by enabled2py function. The additional handling on ldap2py
function should be removed.
Change-Id: Ifd1e91f98ae22a 5e5f7b9b2ddbfdd ba156e16a6d 24b9fb0fdb5f8ab 76ff715435)
Closes-Bug: #1411478
(cherry picked from commit 5b82b8ab6fd1811