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)
1 parent 979d4ee commit 10747cff93b502f08dfa383ade2ce452d00f2994
@kakwa kakwa authored on 9 Feb 2019
Showing 2 changed files
View
ldapcherry/backend/backendAD.py
View
ldapcherry/backend/backendLdap.py