Closed stephane-martin closed 6 years ago
I will test this out when I get a chance. Would this possibly break anyone currently using LDAP with realms?
possibly
The TLS part has been completed. I did some tests with a few LDAP servers configurations.
To do now: more comments and code documentation.
(and more testing obviously)
@stephane-martin is this ok to merge?
Sorry for delay, busy times. I think it's OK to merge. But I've not been able to test every configuration possible related to LDAP/TLS.
Hello,
first step to python 3 compatibility : LDAP.
Currently Realms uses the python-ldap package. python-ldap is not Python 3 compatible, and it's a binary package that links to libldap headers (somewhat painful to install).
Realms also uses flask-ldap-login. That package has a few problems, and the author doesn't react to my (simple) PR so far :-/
So the proposed change is to:
I kept the configuration style of flask-ldap-login so that it's easy to migrate.
Not finished: TLS and START_TLS LDAP connections. For that the flask-ldap-login configuration style is not really great, and i'd like to think a bit more about it to find an easier way.
Thank you, Stephane