keystone/keystone/identity/backends
Corey Bryant 6a3888b05b PY3: Ensure LDAP searches use unicode attributes
This is a bug fix that corresponds to changes missed in commit
eca0829c4c.

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 eca0829c4c.

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:
http://www.python-ldap.org/en/latest/bytes_mode.html#bytes-mode

Change-Id: If3398e2d08ea14fa4b8c498b2a9a7c7edb47b9e5
Closes-Bug: #1820333
Depends-On: https://review.openstack.org/#/c/613648
(cherry picked from commit d6df1dff3e)
2019-03-19 12:07:47 -04:00
..
ldap PY3: Ensure LDAP searches use unicode attributes 2019-03-19 12:07:47 -04:00
__init__.py establish basic structure 2012-01-18 20:06:27 -08:00
base.py Minor cleanup from patch 429047 2017-03-03 16:56:08 +00:00
resource_options.py Allow blocking users from self-service password change 2018-04-18 19:15:07 +00:00
sql.py Allow blocking users from self-service password change 2018-04-18 19:15:07 +00:00
sql_model.py Remove rolling_upgrade_password_hash_compat 2017-12-18 09:20:53 +08:00