mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
ldap: deactivate password update when sync is enabled.
This commit is contained in:
@@ -119,7 +119,8 @@ class User(AbstractUser):
|
||||
:param raw_value: the new password's value
|
||||
:param curvalue: the current password (for LDAP authentication)
|
||||
"""
|
||||
if self.is_local:
|
||||
ldap_sync_enable = param_tools.get_global_parameter("ldap_enable_sync")
|
||||
if self.is_local or ldap_sync_enable:
|
||||
self.password = self._crypt_password(raw_value)
|
||||
else:
|
||||
if not ldap_available:
|
||||
|
||||
Reference in New Issue
Block a user