0
SpringBoot가 다른 도메인에 대해 여러 AD 인증 공급자를 사용할 수 있습니까?여러 개의 별도 AD 도메인에 대한 SpringBoot 보안 LDAP 인증
그래서, 나는 두 개의 별도의 AD 컨트롤러
URL: ldap://ad.region1.company.com
baseDN: dc=region1,dc=company,dc=com
및
URL: ldap://ad.region2.company.com
baseDN: dc=region2,dc=company,dc=com
그리고 몇 가지 코드 등이이 같은 :
ldapdomain 및 LDAPURL은 "REGION1로 설정되어@Bean
public AuthenticationProvider activeDirectoryLdapAuthenticationProvider() {
ActiveDirectoryLdapAuthenticationProvider provider = new ActiveDirectoryLdapAuthenticationProvider(ldapdomain, ldapurl);
provider.setConvertSubErrorCodesToExceptions(true);
provider.setUseAuthenticationRequestCredentials(true);
return provider;
}
"값. 나는 또한 "region2"사용자를 인증 할 수 있기를 원합니다. 두 종점을 모두 제공하고 둘 다 시도해 볼 수있는 방법이 있습니까? 또는 로그인 할 때 사용할 힌트를 제공하는 방법?