diff options
author | Keigo Noha <knoha@redhat.com> | 2020-10-27 15:07:53 +0900 |
---|---|---|
committer | David Hill <dhill@redhat.com> | 2021-01-11 07:52:58 -0500 |
commit | f7df9fba828328d8b20e85d711c1d27c77089632 (patch) | |
tree | 5183a487c64c05a8a708114af35009a38169c26a /releasenotes | |
parent | b0b93c03986f3bb40c5a2ec31ee37c83014e197a (diff) | |
download | keystone-f7df9fba828328d8b20e85d711c1d27c77089632.tar.gz |
Support bytes type in generate_public_ID()
python-ldap3.0 or later running on python3 uses str or bytes
data type according to what fields are returned.
local_id may be a bytes data type.
To handle it properly, mapping[key] needs to be examined for
identifying its data type and what python version is used.
Closes-Bug: #1901654
Change-Id: Iac097235fd31e166028c169d14ec0937c663c21c
Diffstat (limited to 'releasenotes')
-rw-r--r-- | releasenotes/notes/bug-1901654-69b9f35d11cd0c75.yaml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/releasenotes/notes/bug-1901654-69b9f35d11cd0c75.yaml b/releasenotes/notes/bug-1901654-69b9f35d11cd0c75.yaml new file mode 100644 index 000000000..0537bb837 --- /dev/null +++ b/releasenotes/notes/bug-1901654-69b9f35d11cd0c75.yaml @@ -0,0 +1,10 @@ +--- +fixes: + - | + [`bug 1901654 <https://bugs.launchpad.net/keystone/+bug/1901654>`_] + Previously, generate_public_ID() in sha256.py assumed the passed arguments is str data type. + However, python-ldap 3.0 or later returns bytes data type for attribute values except fields + of distinguished names, relative distinguished names, attribute names, queries. + If keystone running on Python3 is integrated with LDAP and the LDAP server has local_id variable + in its attribute, user login operations will fail due to the assumption and modifiation of python-ldap. + By this fix, generate_public_ID() properly handles bytes data type in the parameter. |