cas.authn.attributeRepository.defaultAttributesToRelease=cn:email_id
The log says:
2018-06-12 16:37:29,161 DEBUG [org.apereo.cas.authentication.handler.support.AbstractUsernamePasswordAuthenticationHandler] - <Attempting authentication internally for transformed credential [
crtsyd.t...@testbuyonplatform.com.au]>
2018-06-12 16:37:29,162 DEBUG [org.apereo.cas.authentication.LdapAuthenticationHandler] - <Attempting LDAP authentication for [
crtsyd.t...@testbuyonplatform.com.au]. Authenticator pre-configured attributes are [null], additional requested attributes for this authentication request are [[cn]]>
2018-06-12 16:37:29,210 DEBUG [org.apereo.cas.authentication.LdapAuthenticationHandler] - <LDAP response: [[org.ldaptive.auth.AuthenticationResponse@19191242::authenticationResultCode=AUTHENTICATION_HANDLER_SUCCESS, resolvedDn=cn=
crtsyd.t...@testbuyonplatform.com.au,ou=agencies,dc=bidonprint,dc=com,dc=au, ldapEntry=[dn=cn=
crtsyd.t...@testbuyonplatform.com.au,ou=agencies,dc=bidonprint,dc=com,dc=au[]], accountState=null, result=true, resultCode=SUCCESS, message=null, controls=null]]>
2018-06-12 16:37:29,211 DEBUG [org.apereo.cas.authentication.support.LdapPasswordPolicyHandlingStrategy] - <Authentication response [DefaultLdapPasswordPolicyHandlingStrategy] is supported by password policy handling strategy [{}]>
2018-06-12 16:37:29,212 DEBUG [org.apereo.cas.authentication.LdapAuthenticationHandler] - <Attempting to examine and handle LDAP password policy via [DefaultLdapPasswordPolicyHandlingStrategy]>
2018-06-12 16:37:29,213 DEBUG [org.apereo.cas.authentication.support.DefaultLdapPasswordPolicyHandlingStrategy] - <Applying password policy [[org.ldaptive.auth.AuthenticationResponse@19191242::authenticationResultCode=AUTHENTICATION_HANDLER_SUCCESS, resolvedDn=cn=
crtsyd.t...@testbuyonplatform.com.au,ou=agencies,dc=bidonprint,dc=com,dc=au, ldapEntry=[dn=cn=
crtsyd.t...@testbuyonplatform.com.au,ou=agencies,dc=bidonprint,dc=com,dc=au[]], accountState=null, result=true, resultCode=SUCCESS, message=null, controls=null]] to [org.apereo.cas.authentication.support.DefaultAccountStateHandler@1c53cb0d]>
2018-06-12 16:37:29,214 DEBUG [org.apereo.cas.authentication.support.DefaultAccountStateHandler] - <Attempting to handle LDAP account state for [[org.ldaptive.auth.AuthenticationResponse@19191242::authenticationResultCode=AUTHENTICATION_HANDLER_SUCCESS, resolvedDn=cn=
crtsyd.t...@testbuyonplatform.com.au,ou=agencies,dc=bidonprint,dc=com,dc=au, ldapEntry=[dn=cn=
crtsyd.t...@testbuyonplatform.com.au,ou=agencies,dc=bidonprint,dc=com,dc=au[]], accountState=null, result=true, resultCode=SUCCESS, message=null, controls=null]]>
2018-06-12 16:37:29,215 DEBUG [org.apereo.cas.authentication.support.DefaultAccountStateHandler] - <Account state not defined. Returning empty list of messages.>
2018-06-12 16:37:29,216 DEBUG [org.apereo.cas.authentication.LdapAuthenticationHandler] - <LDAP response returned a result. Creating the final LDAP principal>
2018-06-12 16:37:29,218 ERROR [org.apereo.cas.authentication.LdapAuthenticationHandler] - <The principal id attribute [cn] is not found. CAS is configured to disallow missing principal attributes>
2018-06-12 16:37:29,219 DEBUG [org.apereo.cas.authentication.PolicyBasedAuthenticationManager] - <[LdapAuthenticationHandler] exception details: [Principal id attribute is not found for null].>
2018-06-12 16:37:29,219 ERROR [org.apereo.cas.authentication.PolicyBasedAuthenticationManager] - <Authentication has failed. Credentials may be incorrect or CAS cannot find authentication handler that supports [
crtsyd.t...@testbuyonplatform.com.au] of type [UsernamePasswordCredential]. Examine the configuration to ensure a method of authentication is defined and analyze CAS logs at DEBUG level to trace the authentication event.>
2018-06-12 16:37:29,224 INFO [org.apereo.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail record BEGIN
=============================================================
ACTION: AUTHENTICATION_FAILED
APPLICATION: CAS
WHEN: Tue Jun 12 16:37:29 AEST 2018
Regards,
Ganesh