graphite-project / graphite-web

A highly scalable real-time graphing system
http://graphite.readthedocs.org/
Apache License 2.0
5.89k stars 1.26k forks source link

[Q]LDAP setup for python3 #2702

Closed mmueller101 closed 3 years ago

mmueller101 commented 3 years ago

I have recently updated graphite-web to 1.1.8 from 0.9.x. Since LDAP has stopped working properly. I have python-ldap and openldap installed and local_settings.py is set up for it. I am using python3. When I try and log in via graphite UI, it says user name and password aren't correct. LDAP was working before the upgrade of graphite-web. Is there something I'm missing?

I have found that editing the ldapBackend.py file from

deniszh commented 3 years ago

Hi @mmueller101 ,

I think it's related not to python3 / python-ldap or openldap but to Django itself. 2.x do not requre request - https://docs.djangoproject.com/en/2.2/ref/contrib/auth/#django.contrib.auth.backends.ModelBackend.authenticate But 3.x is - https://docs.djangoproject.com/en/3.2/ref/contrib/auth/#django.contrib.auth.backends.ModelBackend.authenticate

Need some work to support both.

mmueller101 commented 3 years ago

Hey @deniszh,

Thanks for taking a look at this.