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);
}
}