mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +03:00
3b849f87f7
Honour the settings in the PSO when changing the password, i.e. msDS-PasswordComplexityEnabled, msDS-PasswordHistoryLength, etc. The password_hash code populates dsdb_control_password_change_status's domain_data with the password settings to use - these are currently based on the settings for the domain. Now, if the password_hash code has worked out that a PSO applies to the user, we override the domain settings with the PSO's values. This change means the password_settings tests now pass. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>