Open ianharrier opened 5 months ago
Interesting page on LDAP controls for Active Directory : https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adts/3c5e87db-4728-4f29-b164-01dd7d7391ea?redirectedfrom=MSDN
Hello @coudot,
I recently upgraded from v1.6.1 to v1.7.0 and it seems that the implementation to honor password history in an Active directory context hasn't been added in this version. I have tested to set the same "Old" and "New" password in the main form, and it is blocking since the password is the same. I then tried to update my password, store it as the N -1 password, and then update back my password to set the N -1 password. Our Active Directory policy is to not reuse the last 12 previous password. It should be blocked by the tool, but renew has been possible with my N -1 password.
Do you have any idea of when it will be implemented ? As I can see, scope of this issue is currently 1.7.0, and the following issue is now closed : https://github.com/ltb-project/ltb-common/issues/16.
Thanks by advance :)
Regards.
Hello,
indeed, the current issue is still opened.
It requires an evolution in ltb-common to use this control in AD and an option in SSP to enable this feature.
You can propose PR on these two projects or contact us for professional services so we can work on it in next release.
I just wanted to put this out there, as I've seen password history mentioned in previous issues, and in case the maintainers have any interset in making this an official feature.
In Self Service Password v1.5 and below, I was able to replace this (https://github.com/ltb-project/self-service-password/blob/1.5/lib/functions.inc.php#L523-L527):
with this:
which would allow me to use
$who_change_password = "manager";
while still enforcing Active Directory's password history restrictions.In SSP v1.6, the password change code has been moved into https://github.com/ltb-project/ltb-ldap, so replacing this (https://github.com/ltb-project/ltb-ldap/blob/main/src/Ltb/Ldap.php#L349-L354):
with this:
now seems to accomplish the same thing.