简体   繁体   English

具有AD身份验证和数据库授权的Spring安全性

[英]Spring security with AD Authentication and Database Authorization

I'm trying to implement the solution of this question 我正在尝试实施此问题的解决方案

Spring Security 3 Active Directory Authentication, Database Authorization Spring Security 3 Active Directory身份验证,数据库授权

but i don't understand how to use the MyAuthoritySupplementingProvider . 但是我不明白如何使用MyAuthoritySupplementingProvider。

Is there someone that can help me? 有没有人可以帮助我?

i think MyAuthoritySupplementingProvider should be specified in 我认为MyAuthoritySupplementingProvider应该在

<beans:bean id="activeDirectoryAuthenticationProvider"
        class="xxx.package.MyAuthoritySupplementingProvider">
    <beans:constructor-arg value="mydomain" />
    <beans:constructor-arg value="ldap://my URL :389" />
    <beans:property name="convertSubErrorCodesToExceptions" value="true"/>
</beans:bean>

i am not sure weather this will work or not but to get more detail you should refer to book "Spring Security 3" Chapter 9 for ldap and active directory configuration and options, this will help you understand this in better way instead of just going through SO post. 我不确定天气是否会奏效,但要获取更多详细信息,请参阅《 Spring Security 3》第9章中的ldap和活动目录配置和选项,这将帮助您更好地理解这一点,而不是单单通过如此张贴。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM