From 7b750194cab97d82e754552fa7573fe84339b5f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be> Date: Wed, 14 Jun 2017 17:23:46 +0200 Subject: [PATCH] Fixes #5593 Trigger hooks even if SASL password does not modify LDAP --- plugins/personal/generic/class_user.inc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/personal/generic/class_user.inc b/plugins/personal/generic/class_user.inc index efb05047f..00da0671a 100644 --- a/plugins/personal/generic/class_user.inc +++ b/plugins/personal/generic/class_user.inc @@ -549,6 +549,15 @@ class user extends simplePlugin return parent::execute(); } + protected function shouldSave() + { + if ($this->attributesAccess['userPassword']->getClear() != '') { + /* There may be hooks using this even if LDAP object is not modified */ + return TRUE; + } + return parent::shouldSave(); + } + protected function prepare_save () { global $config; -- GitLab