ITS#8327 fix ppolicy_get_default

pwdMaxRecordedFailure must never be zero
This commit is contained in:
Howard Chu 2015-12-03 00:58:33 +00:00
parent 9c1b3b247d
commit 3a305253a0

View File

@ -477,6 +477,8 @@ ppolicy_get_default( PassPolicy *pp )
/* Users can change their own password by default */ /* Users can change their own password by default */
pp->pwdAllowUserChange = 1; pp->pwdAllowUserChange = 1;
if ( !pp->pwdMaxRecordedFailure )
pp->pwdMaxRecordedFailure = PPOLICY_DEFAULT_MAXRECORDED_FAILURE;
} }