ITS#5285 don't check for password reuse if history is not enabled

This commit is contained in:
Howard Chu 2007-12-15 19:35:11 +00:00
parent a88f709b8d
commit 13491b3905

View File

@ -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.