0
활성 디렉토리 서비스 계정을 사용할 때 잘못된 자격 증명 예외가 발생하며 사용자 계정에 대해 동일한 코드가 제대로 작동합니다.스프링 부트 + 스프링 LDAP + 서비스 계정 + 잘못된 인증서
서비스 사용자 자격 증명에 아무런 문제가 없습니다.
아래 코드를 찾으십시오.
@Configuration
protected static class AuthenticationConfiguration extends GlobalAuthenticationConfigurerAdapter {
@Override
public void init(AuthenticationManagerBuilder auth) throws Exception {
ActiveDirectoryLdapAuthenticationProvider provider = new ActiveDirectoryLdapAuthenticationProvider(
"abc.def.ghi", "ldap://abc.def.ghi:389");
auth.authenticationProvider(provider);
}
}