zulip/zproject
Mateusz Mandera 3699fe28f8 ldap: Use email search in django_to_ldap_username.
With this, django_to_ldap_username can take an email and find the ldap
username of the ldap user who has this email - if email search is
configured.

This allows successful authenticate() with ldap email and ldap password,
instead of ldap username. This is especially useful because when
a user wants to fetch their api key, the server attempts authenticate
with user_profile.email - and this used to fail if the user was an ldap
user (because the ldap username was required to authenticate
succesfully). See issue #9277.
2019-10-22 15:57:52 -07:00
..
jinja2 cleanup: Delete leading newlines. 2019-08-06 23:29:11 -07:00
__init__.py Rename Django project to zproject. 2013-08-07 11:04:03 -04:00
backends.py ldap: Use email search in django_to_ldap_username. 2019-10-22 15:57:52 -07:00
dev_settings.py auth: Add initial SAML authentication support. 2019-10-10 15:44:34 -07:00
dev_urls.py storage: Stop using django-pipeline. 2019-07-24 17:40:31 -07:00
email_backends.py tools: Upgrade Pycodestyle and fix new linter errors. 2019-01-31 12:21:41 -08:00
legacy_urls.py urls: Move the json/fetch_api_key endpoint to be an API-style route. 2018-01-08 13:15:52 -05:00
prod_settings_template.py ldap: Do a proper search for email in email_belongs_to_ldap. 2019-10-22 15:53:39 -07:00
settings.py ldap: Do a proper search for email in email_belongs_to_ldap. 2019-10-22 15:53:39 -07:00
slack_importer_test_settings.py settings: Migrate test settings to modern postgres backend name. 2019-01-23 17:08:24 -08:00
terms.md.template Add TERMS_OF_SERVICE setting. 2016-07-29 20:47:31 -07:00
test_settings.py ldap: Use email search in django_to_ldap_username. 2019-10-22 15:57:52 -07:00
urls.py auth: Add initial SAML authentication support. 2019-10-10 15:44:34 -07:00
wsgi.py wsgi.py: Fix broken error ouput for django.setup() call. 2019-06-24 12:19:51 -07:00