Announcement Announcement Module
Collapse
No announcement yet.
ProviderManager authenticats in a loop for all providers ?? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ProviderManager authenticats in a loop for all providers ??

    I have LDAP authentication set up for multiple providers. The idea is if the first authentication provider fails due to the server being not available then it should try the second provider and so on. This works great. The problem is when the user enters wrong password. The ProviderManager still goes in a loop and tries to authenticate will all the other providers. This results into multiple bad hits on the LDAP server and the user account is disabled due to multiple trials for same user.
    In below configuration I have all the providers to be mirror images. They are just there so that we have more tollerance and 24x7 availability of LDAP server.
    Please provide some solution to this if possible. Thanks

    <bean id="authenticationManager"
    class="org.acegisecurity.providers.ProviderManager ">
    <property name="providers">
    <list>
    <ref local="daoAuthenticationProvider" />
    <ref local="ldapAuthenticationProvider_RWTIP" />
    <ref local="ldapAuthenticationProvider_RWTDNS1" />
    <ref local="anonymousAuthenticationProvider" />
    </list>
    </property>
    </bean>

  • #2
    Please post Acegi questions in the Acegi Security forum. Spring LDAP has nothing to do with Acegi.

    Comment

    Working...
    X