简体   繁体   中英

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

but i don't understand how to use the MyAuthoritySupplementingProvider .

Is there someone that can help me?

i think MyAuthoritySupplementingProvider should be specified in

<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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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