diff options
author | Olivier Lamy <olamy@apache.org> | 2013-02-23 18:36:40 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2013-02-23 18:36:40 +0000 |
commit | dfca551caf7f0f89a766e2c3aec762e233cbb7b5 (patch) | |
tree | 8c855b607ee2947b224e9459ac5c2b52c125a69f /redback-system | |
parent | 7bcf37568d49b167e2b0db65663c9226202fac1b (diff) | |
download | archiva-dfca551caf7f0f89a766e2c3aec762e233cbb7b5.tar.gz archiva-dfca551caf7f0f89a766e2c3aec762e233cbb7b5.zip |
as we can chain various user managers with Archiva
user manager authenticator can lock accounts in the following case :
2 user managers: ldap and jdo.
ldap correctly find the user but cannot compare hashed password
jdo reject password so increase loginAttemptCount
now ldap bind authenticator work but loginAttemptCount has been increased.
so we restore here loginAttemptCount to 0 if in authenticationFailureCauses
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1449386 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'redback-system')
-rw-r--r-- | redback-system/src/test/resources/spring-context.xml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/redback-system/src/test/resources/spring-context.xml b/redback-system/src/test/resources/spring-context.xml index dd75f723a..9857d4f23 100644 --- a/redback-system/src/test/resources/spring-context.xml +++ b/redback-system/src/test/resources/spring-context.xml @@ -45,4 +45,6 @@ <alias name="commons-configuration" alias="test-conf"/> + <bean name="userManager#configurable" class="org.apache.archiva.redback.system.MockUserManager"/> + </beans>
\ No newline at end of file |