]> git.sur5r.net Git - openldap/commitdiff
ITS#8327 fix ppolicy_get_default
authorHoward Chu <hyc@openldap.org>
Thu, 3 Dec 2015 00:58:33 +0000 (00:58 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 3 Dec 2015 00:58:33 +0000 (00:58 +0000)
pwdMaxRecordedFailure must never be zero

servers/slapd/overlays/ppolicy.c

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