mirror of https://github.com/zulip/zulip.git
8c065d1fcd
This changes the way django_to_ldap_username works to make sure the ldap username it returns actually has a corresponding ldap entry and raise an exception if that's not possible. It seems to be a more sound approach than just having it return its best guess - which was the case so far. Now there is a guarantee that what it returns is the username of an actual ldap user. This allows communicating to the registration flow when the email being registered doesn't belong to ldap, which then will proceed to register it via the normal email backend flow - finally fixing the bug where you couldn't register a non-ldap email even with the email backend enabled. These changes to the behavior of django_to_ldap_username require small refactorings in a couple of other functions that call it, as well as adapting some tests to these changes. Finally, additional tests are added for the above-mentioned registration flow behavior and some related corner-cases. |
||
---|---|---|
.. | ||
jinja2 | ||
__init__.py | ||
backends.py | ||
dev_settings.py | ||
dev_urls.py | ||
email_backends.py | ||
legacy_urls.py | ||
prod_settings_template.py | ||
settings.py | ||
slack_importer_test_settings.py | ||
terms.md.template | ||
test_settings.py | ||
urls.py | ||
wsgi.py |