【发布时间】:2021-04-07 15:28:54
【问题描述】:
环境
- LDAP 服务器:TurnKey OpenLDAP
- Spring-ldap-core 版本:2.3.3.RELEASE
活动是什么
- 用户被锁定在 LDAP 服务器中
- 用户尝试通过我们的网络应用登录
- 登录失败
- 错误代码 49 - 抛出无效凭据
预期结果
应该抛出特定的异常(例如:错误代码775 USER_ACCOUNT_LOCKED)
例外
comment 和 data 等一些信息在异常中找不到
org.springframework.ldap.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]; nested exception is javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]
at org.springframework.ldap.support.LdapUtils.convertLdapException(LdapUtils.java:191)```
【问题讨论】:
-
你的问题是什么?