This is a bug fix that corresponds to changes missed in commit
eca0829c4c65e6b64f08023ce2d5a55dc329248f.
In Python 3, python-ldap no longer allows bytes for some fields (DNs,
RDNs, attribute names, queries). Instead, text values are represented
as str, the Unicode text type. Compatibility support is provided for
Python 2 by setting bytes_mode=False [1]. This support was provided
in commit eca0829c4c65e6b64f08023ce2d5a55dc329248f.
In this patch we ensure that attribute names specified in searches
are no longer encoded.
Reviewed: https:/ /review. openstack. org/643670 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=d6df1dff3e5 19a26c1a12b6c32 f9799484be5966
Committed: https:/
Submitter: Zuul
Branch: master
commit d6df1dff3e519a2 6c1a12b6c32f979 9484be5966
Author: Corey Bryant <email address hidden>
Date: Mon Mar 18 13:46:37 2019 -0400
PY3: Ensure LDAP searches use unicode attributes
This is a bug fix that corresponds to changes missed in commit 5e6b64f08023ce2 d5a55dc329248f.
eca0829c4c6
In Python 3, python-ldap no longer allows bytes for some fields (DNs, 64f08023ce2d5a5 5dc329248f.
RDNs, attribute names, queries). Instead, text values are represented
as str, the Unicode text type. Compatibility support is provided for
Python 2 by setting bytes_mode=False [1]. This support was provided
in commit eca0829c4c65e6b
In this patch we ensure that attribute names specified in searches
are no longer encoded.
[1] More details about byte/str usage in python-ldap can be found at: www.python- ldap.org/ en/latest/ bytes_mode. html#bytes- mode
http://
Change-Id: If3398e2d08ea14 fa4b8c498b2a9a7 c7edb47b9e5
Closes-Bug: #1820333