我用构建了CAS v4.1.2,并将其部署到本地计算机上的tomcat 8中。但是,当我尝试登录时,我会得到一个错误,并有下一个堆栈跟踪:
2015-11-26 23:45:48,071 DEBUG [org.jasig.cas.authentication.LdapAuthenticationHandler] - Attempting LDAP authentication for maksimov+password
2015-11-26 23:45:48,081 DEBUG [org.jasig.cas.authentication.LdapAuthenticationHandler] - LDAP response: [org.ldaptive.auth.AuthenticationResponse@588271304::authenticationResultCode=DN_RESOLUTION_FAILURE, ldapEntry=null, accountState=null, result=false, resultCode=null, message=DN cannot be null, controls=null]
2015-11-26 23:45:48,085 INFO [org.jasig.cas.authentication.PolicyBasedAuthenticationManager] - LdapAuthenticationHandler failed authenticating maksimov+password
2015-11-26 23:45:48,091 DEBUG [org.jasig.cas.authentication.PolicyBasedAuthenticationManager] - LdapAuthenticationHandler exception details: maksimov not found.
2015-11-26 23:45:48,095 DEBUG [org.jasig.cas.audit.spi.TicketOrCredentialPrincipalResolver] - Resolving argument [UsernamePasswordCredential] for audit
2015-11-26 23:45:48,100 INFO [org.jasig.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - Audit trail record BEGIN
=============================================================
WHO: maksimov+password
WHAT: supplied credentials: [maksimov+password]
ACTION: AUTHENTICATION_FAILED
APPLICATION: CAS
WHEN: Thu Nov 26 23:45:48 YEKT 2015
CLIENT IP ADDRESS: 0:0:0:0:0:0:0:1
SERVER IP ADDRESS: 0:0:0:0:0:0:0:1
=============================================================deployerConfigContext.xml
http://pastebin.com/ThYqfv62
发布于 2015-11-27 06:50:28
通过将搜索过滤器设置为sAMAccountName={user}解决了问题。
https://stackoverflow.com/questions/33945395
复制相似问题