Reviewed:  https://review.openstack.org/644607
Committed: 
https://git.openstack.org/cgit/openstack/keystone/commit/?id=6a3888b05b602d9feaac6bface5c71b2f1d4f30f
Submitter: Zuul
Branch:    stable/rocky

commit 6a3888b05b602d9feaac6bface5c71b2f1d4f30f
Author: Corey Bryant <corey.bry...@canonical.com>
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
    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.
    
    [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 d6df1dff3e519a26c1a12b6c32f9799484be5966)


** Tags added: in-stable-rocky

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1820333

Title:
  [SRU] ldap search should not encode attributes

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1820333/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to