【问题标题】:Spring boot + Spring LDAP + Service Account + Bad CredentialsSpring boot + Spring LDAP + Service Account + Bad Credentials
【发布时间】:2017-01-30 21:00:53
【问题描述】:

我在使用 Active Directory 服务帐户时遇到错误的凭据异常,并且相同的代码对用户帐户运行良好。

而且服务用户凭据没有任何问题。

请在下面找到我的代码。

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

}

【问题讨论】:

    标签: spring spring-security spring-boot spring-ldap


    【解决方案1】:

    userPrincipleName 属性与该特定用户帐户的预期格式 username@domainname 不内联。

    【讨论】:

      猜你喜欢
      • 2019-02-19
      • 2020-03-24
      • 2021-12-03
      • 2015-09-17
      • 1970-01-01
      • 2017-07-15
      • 2017-10-20
      • 1970-01-01
      • 2020-05-13
      相关资源
      最近更新 更多