ldap: Add advanced LDAP realm access control.

This allows access to be more configurable than just setting one
attribute.  This can be configured by setting the setting
AUTH_LDAP_ADVANCED_REALM_ACCESS_CONTROL.
This commit is contained in:
strifel
2020-09-22 18:18:45 +02:00
committed by Tim Abbott
parent 2d9631191e
commit 02c5676a67
6 changed files with 153 additions and 6 deletions

View File

@@ -63,6 +63,7 @@ AUTH_LDAP_ALWAYS_UPDATE_USER = False
# Detailed docs in zproject/dev_settings.py.
FAKE_LDAP_MODE: Optional[str] = None
FAKE_LDAP_NUM_USERS = 8
AUTH_LDAP_ADVANCED_REALM_ACCESS_CONTROL = None
# Social auth; we support providing values for some of these
# settings in zulip-secrets.conf instead of settings.py in development.