javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]

前端 未结 1 486
失恋的感觉
失恋的感觉 2021-02-14 01:01

I\'m new to ldap and I was trying what I thought was a trivial example to test the spring ldap module with an ldap instance that someone had already setup for testing.

D

相关标签:
1条回答
  • 2021-02-14 01:49

    It turns out I just needed to include everything in the distinguished name(including the organization unit). Using

    contextSource.setBase(...);
    

    for some reason did not work. After making that correction all was fine.

    contextSource.setUserDn("cn=john,ou=Users,dc=testathon,dc=net");
    
    0 讨论(0)
提交回复
热议问题