Problem with encoding via CAS passwords that are located in my Oracle database

15 views
Skip to first unread message

John Myrna

unread,
Mar 3, 2023, 6:55:41 AM3/3/23
to CAS Community
Hi CAS Community, 

Issue:
I'm currently facing a problem with encoding my passwords that are saved in a Oracle DataBase and they are crypted by SHA-1

This is my .yml configuration
cas:
authn:
accept:
enabled: false
jdbc:
query[0]:
driver-class: oracle.jdbc.driver.OracleDriver
field-password: {myPassword}
sql: {mySqlQuery}
url: {myUrl}
dialect: org.hibernate.dialect.Oracle12cDialect
user: {myUserName}
password: {myPassword}
ddl-auto: none
password-encoder:
encoding-algorithm: DEFAULT
type: SSHA

And with these setting once trying to log (localhost:8443/cas/)

I get information that: 
[org.apereo.cas.authentication.DefaultAuthenticationManager] - <Password does not match value on record.> 

And it's not a problem with connection to the database because if I update my password with a plain not crypted password and change my .yml file to use:
encoding-algorithm: NONE
type: NONE

I can login in correctly
Reply all
Reply to author
Forward
0 new messages