mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
backends.py: Enable auth with any ldap attributes as username.
This commit enables user to authenticate with any attribute set in AUTH_LDAP_USER_SEARCH given that LDAP_EMAIL_ATTR is set to an email attributes in the ldap server. Thus email and username can be completely unrelated. With some tweaks by tabbott to squash in the documentation and make it work on older servers.
This commit is contained in:
@@ -169,6 +169,7 @@ DEFAULT_SETTINGS = {'TWITTER_CONSUMER_KEY': '',
|
||||
'ENABLE_GRAVATAR': True,
|
||||
'DEFAULT_AVATAR_URI': '/static/images/default-avatar.png',
|
||||
'AUTH_LDAP_SERVER_URI': "",
|
||||
'LDAP_EMAIL_ATTR': None,
|
||||
'EXTERNAL_URI_SCHEME': "https://",
|
||||
'ZULIP_COM': False,
|
||||
'SHOW_OSS_ANNOUNCEMENT': False,
|
||||
|
||||
Reference in New Issue
Block a user