2
Java 구성 및 LDAP 인증/권한 부여와 함께 Spring Security 3.2.5를 사용하고 있습니다.스프링 보안 Java 구성 다중 그룹 검색베이스
우리는 LDAP의 두 개의 별도 트리에서 그룹을 검색해야합니다.
OU = 그룹
및OU = 그룹, OU = 웹 어플리케이션, OU =
응용 프로그램내가 검색 한이 주제에 대한 정보를 찾을 수 없었습니다.
이 잘 작동 내 현재 코드 :
@Autowired
public void configureGlobal(UserDetailsContextMapper userDetailsContextMapper, LdapContextSource contextSource, AuthenticationManagerBuilder builder) throws Exception {
builder
.ldapAuthentication()
.userDetailsContextMapper(userDetailsContextMapper)
.contextSource(contextSource)
.userSearchFilter("cn={0}")
.userSearchBase("ou=Users")
.groupSearchBase("ou=groups");
}
나는 이런 식으로 뭔가를 할 :
builder
.ldapAuthentication()
.userDetailsContextMapper(userDetailsContextMapper)
.contextSource(contextSource)
.userSearchFilter("cn={0}")
.userSearchBase("ou=Users")
.groupSearchBase("ou=groups")
.groupSearchBase("ou=Groups,ou=webapps,ou=Applications");
당연히 작동하지 않습니다.
누구나 어디서부터 시작해야합니까?
질문에 대한 해결책을 찾았습니까? 나는 똑같은 것을 찾고있다. 고맙습니다. –