diff --git a/modoboa/core/app_settings.py b/modoboa/core/app_settings.py index f5967de83..f63f045da 100644 --- a/modoboa/core/app_settings.py +++ b/modoboa/core/app_settings.py @@ -500,6 +500,8 @@ class GeneralParametersForm(param_forms.AdminParametersForm): settings, "AUTH_LDAP_USER_DN_TEMPLATE", values["ldap_user_dn_template"] ) + setattr( + settings, "AUTH_LDAP_BIND_AS_AUTHENTICATING_USER", True) if values["ldap_is_active_directory"]: if not hasattr(settings, "AUTH_LDAP_GLOBAL_OPTIONS"): setattr(settings, "AUTH_LDAP_GLOBAL_OPTIONS", {