我們使用彈簧安全&使用LDAP來驗證我們的Web應用程序。在我們的LDAP配置中,有多個可用的userndn模式。我想知道如何在applicationContext-security.xml文件中配置多個userdn模式。我有以下配置中指定Spring Security LDAP身份驗證多個DN模式
<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>
當我提供在XML文件中的上述結構中,對應於一個特定的位置DN模式用戶將只能夠登錄。我想知道我們如何在xml文件中配置多個userdn模式。
任何幫助,這是非常感謝。謝謝
不要在Web上發佈內部信息! – Michael 2013-05-07 08:02:20