mirror of
https://github.com/univention/ansible-modules.git
synced 2025-10-26 11:19:34 +00:00
fix(univention_directory_manager): change password to same value failed
This commit is contained in:
parent
530eb11458
commit
f47b04d937
@ -184,6 +184,7 @@ from ansible.module_utils.common.text.converters import to_native # noqa F401
|
||||
UDM_IMP_ERR = None
|
||||
try:
|
||||
import univention.udm
|
||||
|
||||
HAS_UDM = True
|
||||
except ModuleNotFoundError:
|
||||
HAS_UDM = False
|
||||
@ -394,6 +395,8 @@ class UDMAnsibleModule():
|
||||
prop_name = attr['property']
|
||||
prop_value = attr['value']
|
||||
self._set_property(obj, prop_name, prop_value)
|
||||
if prop_name == "password":
|
||||
self._set_property(obj, "overridePWHistory", "1")
|
||||
if not self.ansible_module.check_mode:
|
||||
self._try_function(
|
||||
obj.save
|
||||
|
||||
Loading…
Reference in New Issue
Block a user