I'm trying to add an ldap auth provider (custom) into our stack of authentication providers.
I originally have three providers in the list and it has been configured through the ProviderManager as below:
This seemed fine and is designed to drop authentication to a form login when cas failes (cas has been modified to include the gateway=true attribute). The LDAP provider extends the DaoAuthenticationProvider supplied by spring.Code:<bean id="authenticationManager" class="org.springframework.security.providers.ProviderManager"> <property name="providers"> <list> <ref bean="tlcLdapAuthenticationProvider" /> <ref bean="casAuthenticationProvider"/> <bean class="org.springframework.security.providers.rememberme.RememberMeAuthenticationProvider"> <property name="key" value="admin"/> </bean> </list> </property> </bean>
In the first authentication attempt (put in a secure URL and it is caught and redirected) the three providers are present.
If you fill in the form and submit it (sends to j_spring_security_check) only cas and _rememberMe are available, the LDAP provider is missing. This appears to be because the NamespaceAuthenticationManager doesn't have it in it's bean names list.
My question: Why doesn't it appear in that list (I'm not formally setting it anywhere so I assume it is detected some how)?


