authentication_event: fix password expiration
Before this change, password event were only recorded when preferred_number_of_last_password_to_check was set. We also need to record password events to check for password lifetime, so also record password events when preferred_max_lifetime_duration is is set (also when set to 0h, but this only makes sense in tests). testAuthenticationPolicy was not showing this problem, because tests were not properly isolated and test_02_PasswordHistory was enabling preferred_number_of_last_password_to_check for all other tests.
Showing
Please register or sign in to comment