How do you authenticate against an Active Directory server using Spring Security?
I had the same banging-my-head-against-the-wall experience you did, and ended up writing a custom authentication provider that does an LDAP query against the Active Directory server. So my security-related beans are: <beans:bean id=”contextSource” class=”org.springframework.security.ldap.DefaultSpringSecurityContextSource”> <beans:constructor-arg value=”ldap://hostname.queso.com:389/” /> </beans:bean> <beans:bean id=”ldapAuthenticationProvider” class=”org.queso.ad.service.authentication.LdapAuthenticationProvider”> <beans:property name=”authenticator” ref=”ldapAuthenticator” /> <custom-authentication-provider /> </beans:bean> <beans:bean id=”ldapAuthenticator” class=”org.queso.ad.service.authentication.LdapAuthenticatorImpl”> <beans:property name=”contextFactory” ref=”contextSource” /> … Read more