HomePhorge

[Python 3] bytes-like strings decoding for saslauthd.py

Description

[Python 3] bytes-like strings decoding for saslauthd.py

Summary:
byte-like strings needed to be decoded as text strings

debugging with 2.7 origin code returned unicode strings, but returned in python 3 bytse-like string variables.

Optparse gets text strings from shell.
configparse uses internally text strings.
From version 3.0, python-ldap uses text where appropriate. On Python 2, the bytes mode setting influences how text is handled.

socket.streams and db including bytes-like string code, which will be decoded with this diff, for python-ldap operations.

Reviewers: PyKolab Developers, vanmeeuwen, sicherha

Reviewed By: PyKolab Developers, sicherha

Subscribers: sicherha, vanmeeuwen

Differential Revision: https://git.kolab.org/D3469

Details

Provenance
sicherhaAuthored on Jun 15 2022, 11:54 PM
sicherhaPushed on Jun 15 2022, 11:55 PM
Reviewer
PyKolab Developers
Differential Revision
D3469: [Python 3] bytes-like strings decoding for saslauthd.py
Parents
rPb9f2a67f9581: [cli - dam] wrong variable used
Branches
Unknown
Tags
Unknown
Build Status
Buildable 39251