CAS 5.0 RC2 LDAP Active Directory

366 views
Skip to first unread message

Huancar Vargas

unread,
Sep 26, 2016, 6:02:10 PM9/26/16
to CAS Community
Hi,

I have this error when I am tryinn to login.

"Authentication has failed. Credentials may be incorrect or CAS cannot find authentication handler that supports [querys] of type [UsernamePasswordCredential], which suggests a configuration problem."

I don't know what more I need to configure. this configration works fine with CAS 4.2.4 

cas.authn.ldap[0].ldapUrl=ldap://mycompany:389
cas.authn.ldap[0].useSsl=false
cas.authn.ldap[0].useStartTls=false
cas.authn.ldap[0].connectTimeout=5000
cas.authn.ldap[0].baseDn=DC=mycompany,DC=local
cas.authn.ldap[0].userFilter=sAMAccountName={user}
cas.authn.ldap[0].subtreeSearch=true
cas.authn.ldap[0].usePasswordPolicy=false
cas.authn.ldap[0].bindDn=CN=Querys,OU=Users,DC=mycompany,DC=local
cas.authn.ldap[0].bindCredential=xxxxxx

cas.authn.ldap[0].dnFormat=uid=%s,DC=mycompany,DC=local
cas.authn.ldap[0].principalAttributeId=sAMAccountName
cas.authn.ldap[0].principalAttributePassword=
cas.authn.ldap[0].allowMultiplePrincipalAttributeValues=true

cas.authn.ldap[0].type=AD

cas.authn.ldap[0].minPoolSize=3
cas.authn.ldap[0].maxPoolSize=10
cas.authn.ldap[0].validateOnCheckout=true
cas.authn.ldap[0].validatePeriodically=true
cas.authn.ldap[0].validatePeriod=600

Could you help me please?

Thanks In Advance,
HVC

Jason

unread,
Sep 27, 2016, 9:25:27 AM9/27/16
to CAS Community
Not sure if it is a bug in RC2/RC3 but I was not able to get it to work either by specifying 'AD' , same error as you, I changed it to 'AUTHENTICATED' and it started to work.

cas.authn.ldap[0].type=AUTHENTICATED

Huancar Vargas

unread,
Sep 27, 2016, 10:52:58 AM9/27/16
to CAS Community
Thanks Jason it is working now, I think it is  a bug from RC2
Reply all
Reply to author
Forward
0 new messages