Hello,
I generated a war file from cas-gradle-overlow and deployed on to Tomcat9. Default Username/Password authentication worked and now I'm trying to change it to LDAP but for some reason, am not able to see authentication with LDAP. Can anyone of you guys suggest what's going on?
Below is the config for LDAP:
cas.authn.accept.users=
cas.authn.ldap[0].type=AUTHENTICATED
cas.authn.ldap[0].ldapUrl=ldap://xxxxxx:3268
cas.authn.ldap[0].connectionStrategy=
cas.authn.ldap[0].connectTimeout=5000
cas.authn.ldap[0].subtreeSearch=true
cas.authn.ldap[0].baseDn=dc=ad,dc=xxxx,dc=com
cas.authn.ldap[0].userFilter=sAMAccountName={user}
cas.authn.ldap[0].bindCredential=ldap
cas.authn.ldap[0].useSsl=false
cas.authn.ldap[0].validator.type=SEARCH
cas.authn.ldap[0].validator.baseDn=dc=ad,dc=xxx,dc=com
cas.authn.ldap[0].validator.attributeValues=top
cas.authn.ldap[0].validator.scope=SUBTREE
cas.authn.ldap[0].bindDn=cn=ldap user,ou=System Accounts,dc=ad,dc=xxx,dc=com
ldap.useStartTLS=false
ldap.baseDn=dc=ad,dc=xxxx,dc=com
ldap.connectTimeout=3000
ldap.managerDn=cn=ldap user,ou=System Accounts,dc=ad,dc=xxxxxx,dc=com
ldap.managerPassword=ldap
ldap.authn.searchFilter=sAMAccountName={user}
ldap.allowMultipleDns=false
2018-05-08 13:53:38,070 ERROR [org.apereo.cas.authentication.PolicyBasedAuthenticationManager] - <Authentication has failed. Credentials may be incorrect or CAS cannot find authentication handler that supports [pvemi] 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-05-08 13:53:38,074 INFO [org.apereo.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail record BEGIN
=============================================================
WHO: xxxx
WHAT: Supplied credentials: [xxxx]
ACTION: AUTHENTICATION_FAILED
APPLICATION: CAS
-Phani Vemi