如何调试 Jasig CAS LDAP 身份验证问题?
How to debug Jasig CAS LDAP authentication issues?
我正在按照 https://apereo.github.io/cas/4.2.x/installation/LDAP-Authentication.html(广告验证器)上的指南使用 MS Active Directory 设置本地 CAS SSO 服务器。
我成功地 运行 它没有任何错误,但是任何登录都失败并在日志中显示 "Invalid credentials" 和以下内容:
INFO [org.jasig.cas.authentication.PolicyBasedAuthenticationManager] -
<AcceptUsersAuthenticationHandler failed authenticating username>
DEBUG [org.jasig.cas.authentication.PolicyBasedAuthenticationManager] -
<AcceptUsersAuthenticationHandler exception details: \
No user can be accepted because none is defined>
我想我错误地配置了一些 LDAP 参数,但不知道是哪一个。如何调试此类问题?
我有以下记录器
<Logger name="org.ldaptive" level="debug" additivity="false">
<AppenderRef ref="console"/>
<AppenderRef ref="file"/>
</Logger>
即使我将根日志记录级别设置为跟踪,也没有 LDAP 错误。
看来您错过了这篇文章
https://apereo.github.io/cas/4.2.x/installation/LDAP-Authentication.html#configuration
将您的处理程序添加到处理程序列表中。
我正在按照 https://apereo.github.io/cas/4.2.x/installation/LDAP-Authentication.html(广告验证器)上的指南使用 MS Active Directory 设置本地 CAS SSO 服务器。 我成功地 运行 它没有任何错误,但是任何登录都失败并在日志中显示 "Invalid credentials" 和以下内容:
INFO [org.jasig.cas.authentication.PolicyBasedAuthenticationManager] -
<AcceptUsersAuthenticationHandler failed authenticating username>
DEBUG [org.jasig.cas.authentication.PolicyBasedAuthenticationManager] -
<AcceptUsersAuthenticationHandler exception details: \
No user can be accepted because none is defined>
我想我错误地配置了一些 LDAP 参数,但不知道是哪一个。如何调试此类问题?
我有以下记录器
<Logger name="org.ldaptive" level="debug" additivity="false">
<AppenderRef ref="console"/>
<AppenderRef ref="file"/>
</Logger>
即使我将根日志记录级别设置为跟踪,也没有 LDAP 错误。
看来您错过了这篇文章 https://apereo.github.io/cas/4.2.x/installation/LDAP-Authentication.html#configuration
将您的处理程序添加到处理程序列表中。