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
<b:bean id="ldapProvider"
class="org.springframework.security.ldap.authentication.LdapAuthenticationProvider">
<b:constructor-arg>
<b:bean
class="com.intl.set.him.mait.security.CustomLdapAuthenticator">
<b:constructor-arg ref="ldapContextSource" />
<b:property name="userDnPatterns" value="cn={0},OU=GEN,OU=Users"/>
<b:property name= "commonNameQuery" value = "select USER_CN from emt.sec_users1 where user_id=?"/>
<b:property name="datasource" ref="dataSourceMSSQL"/>
</b:bean>
When I provide the above configuration in the xml file, users corresponding to Dn pattern for a particular location will only be able to login. I want to know how we can configure multiple userdn patterns in the xml file.
Any help on this is much appreciated. Thanks