mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
This uses the MockLDAP class of fakeldap to fake a ldap server, based on the approach already used in the tests in `test_auth_backends.py`. Adds the following settings: - FAKE_LDAP_MODE: Lets user choose out of three preset configurations. The default mode if someone erases the entry in settings is 'a'. The fake ldap server is disable if this option is set to None. - FAKE_LDAP_EXTRA_USERS: Number of extra users in LDAP directory beyond the default 8. Fixes #9934.