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.
Reviewed: https:/ /review. openstack. org/154722 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=5b82b8ab6fd 181124b9fb0fdb5 f8ab76ff715435
Committed: https:/
Submitter: Jenkins
Branch: master
commit 5b82b8ab6fd1811 24b9fb0fdb5f8ab 76ff715435
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
Closes-Bug: #1411478