Hi i try to make CAS 5.1.1 authenticate with a mariadb database
First wich support dependency do i need to add to pom.xml,
cas-server-support-jdbc or cas-server-support-jdbc-drivers ?
i tried both.. fail and one by one it fail too
i seems to me that CAS does not know how to authenticate this is my conf :
cas.authn.accept.users=
cas.authn.jdbc.query[0].sql=SELECT pwd FROM users WHERE email1=?
cas.authn.jdbc.query[0].url=jdbc:mysql://127.0.0.1:3306/mydb
cas.authn.jdbc.query[0].driverClass=org.mariadb.jdbc.Driver
cas.authn.jdbc.query[0].dialect=org.hibernate.dialect.MariaDBDialect
cas.authn.jdbc.query[0].fieldPassword=pwd
cas.authn.jdbc.query[0].tableUsers=users
cas.authn.jdbc.query[0].user=myuser
cas.authn.jdbc.query[0].password=mypassword
cas.authn.jdbc.query[0].passwordEncoder.type=DEFAULT
cas.authn.jdbc.query[0].passwordEncoder.characterEncoding=UTF-8
cas.authn.jdbc.query[0].passwordEncoder.encodingAlgorithm=SHA1
DEBUG Log :
2017-07-03 14:53:27,538 DEBUG [org.apereo.cas.authentication.RegisteredServiceAuthenticationHandlerResolver] - <Authentication handlers used for this transaction are [HttpBasedServiceCredentialsAuthenticationHandler]>
2017-07-03 14:53:27,541 WARN [org.apereo.cas.authentication.PolicyBasedAuthenticationManager]
- <Authentication has failed. Credentials may be incorrect or CAS
cannot find authentication handler that supports [dfsqdf] of type
[UsernamePasswordCredential], which suggests a configuration
problem.>
2017-07-03 14:53:27,559 ERROR [org.apereo.cas.web.flow.AuthenticationExceptionHandlerAction] - <Unable to translate handler errors of the authentication exception [org.apereo.cas.authentication.AuthenticationException: 0 errors, 0 successes]Returning [UNKNOWN]>
I already use CAS 5.1 with ldap auth and it work, i pretty sure i miss something for database auth but do know what
Thanks,
Nicolas