mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
ITS#5285 don't check for password reuse if history is not enabled
This commit is contained in:
parent
a88f709b8d
commit
13491b3905
@ -1771,7 +1771,8 @@ ppolicy_modify( Operation *op, SlapReply *rs )
|
||||
}
|
||||
}
|
||||
|
||||
if (pa) {
|
||||
/* If pwdInHistory is zero, passwords may be reused */
|
||||
if (pa && pp.pwdInHistory > 0) {
|
||||
/*
|
||||
* Last check - the password history.
|
||||
*/
|
||||
@ -1787,8 +1788,6 @@ ppolicy_modify( Operation *op, SlapReply *rs )
|
||||
goto return_results;
|
||||
}
|
||||
|
||||
if (pp.pwdInHistory < 1) goto do_modify;
|
||||
|
||||
/*
|
||||
* Iterate through the password history, and fail on any
|
||||
* password matches.
|
||||
|
Loading…
Reference in New Issue
Block a user