| 1 | --- |
| 2 | fixes: |
| 3 | - | |
| 4 | [`bug 1798184 <https://bugs.launchpad.net/keystone/+bug/1798184>`_] |
| 5 | [`bug 1820333 <https://bugs.launchpad.net/keystone/+bug/1820333>`_] |
| 6 | In Python 3, python-ldap no longer allows bytes for some fields (DNs, |
| 7 | RDNs, attribute names, queries). Instead, text values are represented |
| 8 | as str, the Unicode text type. Compatibility support is provided for |
| 9 | Python 2 by setting bytes_mode=False [1]. |
| 10 | |
| 11 | The keystone LDAP backend is updated to adhere to this behavior by using |
| 12 | bytes_mode=False for Python 2 and dropping UTF-8 encoding and decoding |
| 13 | fields that are now represented as text in python-ldap. |
| 14 | |
| 15 | [1] More details about byte/str usage in python-ldap can be found at: |
| 16 | http://www.python-ldap.org/en/latest/bytes_mode.html#bytes-mode |
| 17 | |
| 18 | Note that at a minimum python-ldappool 2.3.1 is required. |