mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-11 23:03:21 -05:00
ITS#5285 don't check for password reuse if history is not enabled
This commit is contained in:
parent
a88f709b8d
commit
13491b3905
1 changed files with 2 additions and 3 deletions
|
|
@ -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 a new issue