CAS SALT not getting Authenticate 4.2.x

12 views
Skip to first unread message

jaya swamy

unread,
Sep 28, 2018, 6:11:07 AM9/28/18
to CAS Community
Hi All, 

I was trying to configure SALT, below is the configuration: 


cas.jdbc.authn.query.encode.sql=SELECT password, salt FROM users WHERE emailid=?
cas.jdbc.authn.query.encode.alg=SHA256
#cas.jdbc.authn.query.encode.salt.static=f1nd1ngn3m0
cas.jdbc.authn.query.encode.password=password
cas.jdbc.authn.query.encode.salt=salt
cas.jdbc.authn.query.encode.iterations.field=
cas.jdbc.authn.query.encode.iterations=0

and in deployerConfigContext.xml: 

   <bean id="dataSource"
  class="com.mchange.v2.c3p0.ComboPooledDataSource"
  p:driverClass="${database.driverClass}"
  p:jdbcUrl="${database.url}"
  p:user="${database.user}"
  p:password="${database.password}"
  p:initialPoolSize="${database.pool.minSize}"
  p:minPoolSize="${database.pool.minSize}"
  p:maxPoolSize="${database.pool.maxSize}"
  p:maxIdleTimeExcessConnections="${database.pool.maxIdleTime}"
  p:checkoutTimeout="${database.pool.maxWait}"
  p:acquireIncrement="${database.pool.acquireIncrement}"
  p:acquireRetryAttempts="${database.pool.acquireRetryAttempts}"
  p:acquireRetryDelay="${database.pool.acquireRetryDelay}"
  p:idleConnectionTestPeriod="${database.pool.idleConnectionTestPeriod}"
  p:preferredTestQuery="${database.pool.connectionHealthQuery}" />

<alias name="queryAndEncodeDatabaseAuthenticationHandler" alias="primaryAuthenticationHandler" />
<alias name="dataSource" alias="queryEncodeDatabaseDataSource" />

I am not getting any error, also it is not validating and redirecting to post login page 


Email id : j...@gmail.com
password (after applying SHA256 with Salt) : b7d5f95f03261f201b78f7a133f50848f2389f032b4fec9be07f80b34ae89e09 




salt : f1nd1ngn3m0

Normal Password (unencrypted) : farm1990M0O


As I am not getting any error, I am worried, Please let me know if I am doing something wrong. 

Jaya



Reply all
Reply to author
Forward
0 new messages