Active directory 带Active Directory的CAS 4.1

Active directory 带Active Directory的CAS 4.1,active-directory,cas,Active Directory,Cas,我用Active Directory构建了CAS v.4.1.2,并在本地计算机上部署到tomcat 8。但是,当我尝试登录时,我收到一个错误,我有下一个stacktrace: 2015-11-26 23:45:48,071 DEBUG [org.jasig.cas.authentication.LdapAuthenticationHandler] - Attempting LDAP authentication for maksimov+password 2015-11-26 23:4

我用Active Directory构建了CAS v.4.1.2,并在本地计算机上部署到tomcat 8。但是,当我尝试登录时,我收到一个错误,我有下一个stacktrace:

    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


通过将searcfilter设置为sAMAccountName={user}解决了问题。

您可以共享cas.properties和deployerConfigContext.xml吗?您可以共享cas.properties吗?我遇到了一些与
sAMAccountName={user}
无关的问题,也许这会有所帮助