We are using spring security & using LDAP to authenticate our web application. In our LDAP configuration, there are multiple userndn patterns available. I would like to know how to configure multiple userdn patterns in the applicationContext-security.xml file. I have the below configuration specified
When I provide the above configuration in the xml file, users corresponding to Dn pattern for a specific location will only be able to login. I want to know how we can configure multiple userdn patterns in the xml file.
Wouldn't you just want to use the ldap user details service instead of a custom provider?
Also, you can create multiple UserDetailsService(s) and add them and authentication will loop through them till one authenticates the user. So each one would have a different dn pattern and work with what you are looking for.