Reviewed: https://review.openstack.org/613648 Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=a2e7ccb4b32140f122c0beee0f3fcc1109db36bf Submitter: Zuul Branch: stable/rocky
commit a2e7ccb4b32140f122c0beee0f3fcc1109db36bf Author: Corey Bryant <[email protected]> Date: Tue Oct 16 16:19:15 2018 -0400 PY3: switch to using unicode text values 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]. Update the keystone LDAP backend to adhere to this behavior by using bytes_mode=False for Python 2 and dropping UTF-8 encoding and decoding fields that are now represented as text in python-ldap. [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 Note that at a minimum python-ldappool 2.3.1 is required. For more details see Depends-On's below. Change-Id: Ifdd0644cd7042407a008c85c0b2c40a971c90bc3 Closes-Bug: #1798184 Depends-On: https://review.openstack.org/611401 Depends-On: https://review.openstack.org/613632 Depends-On: https://review.openstack.org/614052 (cherry picked from commit eca0829c4c65e6b64f08023ce2d5a55dc329248f) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1798184 Title: [SRU] PY3: python3-ldap does not allow bytes for DN/RDN/field names To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1798184/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
