views:

338

answers:

3

hi I have a j2ee application using Spring webflow and Spring Security. I want to implement an account lockout such that after three times of password failure the account wil be locked. How do I implement this.

+1  A: 

Can you use an AuthenticationFailureHandler? This approach was suggested in the Acegi FAQ (see Common Problem #3).

John
I registered a bean implementing the application handler and checking for an instance of AuthenticationFailureHandler
cedric
+1  A: 

That behavior belongs to the underline authentication provider. If you are using LDAP there is a Password Policy, the LdapAuthenticationProvider will throw an exception if the account is blocked.
If your current AuthenticationProvider doesn't have this functionality then subclass it.

rodrigoap
+1  A: 

Did you figure this out? If not, please refer to my article at: http://www.harinair.com/2010/02/spring-acegi-security-account-lockout/

Hari Gangadharan

related questions