mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
ldap: Turn off the AUTH_LDAP_ALWAYS_UPDATE_USER setting.
The `AUTH_LDAP_ALWAYS_UPDATE_USER` is `True` by default, and this would sync the attributes defined in the `AUTH_LDAP_USER_ATTR_MAP` to the user profile. But, the default code in `django-auth-ldap` would work correctly only for `full_name` field. This commit disables the setting by default, in favour of using the `sync_ldap_user_data` script as a cron job.
This commit is contained in:
committed by
Tim Abbott
parent
569d79b9d8
commit
717d1e504d
@@ -146,6 +146,8 @@ DEFAULT_SETTINGS = {
|
||||
'AUTH_LDAP_CONNECTION_OPTIONS': {},
|
||||
# Disable django-auth-ldap caching, to prevent problems with OU changes.
|
||||
'AUTH_LDAP_CACHE_TIMEOUT': 0,
|
||||
# Disable syncing user on each login; Using sync_ldap_user_data cron is recommended.
|
||||
'AUTH_LDAP_ALWAYS_UPDATE_USER': False,
|
||||
# Development-only settings for fake LDAP authentication; used to
|
||||
# support local development of LDAP auth without an LDAP server.
|
||||
# Detailed docs in zproject/dev_settings.py.
|
||||
|
||||
Reference in New Issue
Block a user