When i tried to connect cas-overlay-6.0 to ldap Oracle directory server 11 with a login/password into cas 6.0 application i have this error :
WHO: myLogin WHAT: Supplied credentials:
[UsernamePasswordCredential(username=myLogin, source=null)] ACTION:
AUTHENTICATION_FAILED APPLICATION: CAS
My cas.properties :
cas.authn.ldap[0].ldapUrl=ldap://monserveur.fr
# Identifiant pour se connecter au LDAP
cas.authn.ldap[0].bindDn=cn=Directory Manager
cas.authn.ldap[0].bindCredential=myPassword
cas.authn.ldap[0].baseDn=ou=pers,ou=XX-XXX-XXXX,ou=subdomain,o=gov,c=country
cas.authn.ldap[0].searchFilter=uid={user}
cas.authn.ldap[0].subtreeSearch=true
#cas.authn.ldap[0].principalAttributeList=cn,givenName,mail,sn
cas.authn.ldap[0].principalAttributePassword=userPassword
Note : password is SSHA encoded in ldap.
How to verify what's wrong ? For example when i put a wrong baseDn or searchFilter i have the same error. How to perform simple login/password test to eliminate error ?
How cas deal with password, ie is the ldap who perform the password compare or cas ?
If it's cas who perform password compare how to configure cas for
Thanks in advance for any helps !
It works for SSHA password without configuration or change.
Exemple for CAS 6.0.5 provided by cas-overlay-6.0 and ldap Oracle Directory Server 11.
cas.properties :
With cas-overlay-6.0 you need to copy conf : ./build.sh copy
for testing when something goes wrong :
cas server side :
must works !
or anonyme connexion
must provide card
ldap server side
must provide line like this (when you run ldapsearch or cas test login connection) :
if connection between cas and ldap fails correct this lines in cas.properties :
when connection between cas and ldap is ok check cas log and acces ldap log for more information !