Hi,
I'm using the DefaultPasswordEncoder with the SHA1 constructor argument, but
users aren't being authenticated in my MySQL database.
Users are being checked correctly, and they authenticate if I remove the
passwordEncoder reference and set the password value to plain text (such as
'password').
Please can you tell me what I'm doing wrong!
All in my DeployerConfigContext.xml:
Under authenticationHandlers:
<bean
class="org.jasig.cas.adaptors.jdbc.SearchModeSearchDatabaseAuthenticationHandler">
<property name="tableUsers"><value>users</value></property>
<property name="fieldUser"><value>userId</value></property>
<property name="fieldPassword"><value>password</value></property>
<property name="dataSource" ref="dataSource"/>
<property name="passwordEncoder" ref="SHA1PasswordEncoder" />
</bean>
My new bean:
<bean id="SHA1PasswordEncoder"
class="org.jasig.cas.authentication.handler.DefaultPasswordEncoder">
<constructor-arg value="SHA1" />
</bean>
I've tried <constructor-arg index="0" value="SHA1" /> and value="SHA" but they
all seem to be failing validation.
Thanks for your help,
Nathan
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user