1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-06-11 13:19:52 +02:00
ldapcherry/ldapcherry/backend
kakwa 10747cff93 add some python 3 support in the LDAP and AD backends
python-ldap talks in bytes,
as the rest of ldapcherry talks in unicode utf-8:
* everything passed to python-ldap must be converted to bytes
* everything coming from python-ldap must be converted to unicode

The previous statement was true for python-ldap < version 3.X.
With versions > 3.0.0 and python 3, it gets tricky,
some parts of python-ldap takes string, specially the filters/escaper.

so we have now:
*_byte_p2 (unicode -> bytes conversion for python 2)
*_byte_p3 (unicode -> bytes conversion for python 3)
*_byte_p23 (unicode -> bytes conversion for python AND 3)
2019-02-09 16:08:18 +01:00
..
__init__.py making Backend skeleton a child class of object 2015-07-28 20:32:46 +02:00
backendAD.py add some python 3 support in the LDAP and AD backends 2019-02-09 16:08:18 +01:00
backendDemo.py pep8 2019-02-07 20:16:39 +01:00
backendLdap.py add some python 3 support in the LDAP and AD backends 2019-02-09 16:08:18 +01:00