One small clarification:
<property name="authenticationHandlers">
*Is located under :**
*<beans .... >
<bean id="authenticationManager"
class="org.jasig.cas.authentication.AuthenticationManagerImpl">
*<property name="authenticationHandlers">*
..
..
..
Thank!!
On Tue, Jun 5, 2012 at 11:33 AM, Ronen Itkin <[email protected]> wrote:
> Hey,
>
> I have installed Jasig Cas (3.4.12) with jdbc support.
> It works great when the password is written as a clear text in the
> database (mysql).
> When I try to enable the 'md5PasswordEncoder' it seems that it actually
> influencing something and yet authentication failed.
> I compared the md5 hash that is being stored in my db with a hash I
> manually made to the same password string on the internet and it exactly
> the same.
>
> Does anyone can help me to figure out why it fails??
>
> Thanks!!!
>
> This are my configurations:
>
> *cas.properties*
> database.hibernate.dialect=org.hibernate.dialect.MySQLDialect
>
> #Database connection
> database.driver=com.mysql.jdbc.Driver
> database.url=jdbc:mysql://10.10.10.1/mydb
> database.username=mydbuser
> database.password=mydbpass
>
> #Run authentication against this table
> database.users.table=users
> database.users.field.user=name
> database.users.field.password=password
>
> *deployerConfigContext.xml*
>
> <beans>
> ..
> ..
> ..
> ..
> <property name="authenticationHandlers">
> <list>
> <!-- This is the authentication handler
> declaration that is using jdbc -->
> <bean
> class="org.jasig.cas.adaptors.jdbc.SearchModeSearchDatabaseAuthenticationHandler">
> <property name="tableUsers">
>
> <value>${database.users.table}</value>
> </property>
> <property name="fieldUser">
>
> <value>${database.users.field.user}</value>
> </property>
> <property name="fieldPassword">
>
> <value>${database.users.field.password}</value>
> </property>
> <property name="dataSource"
> ref="dataSource"/>
> <property name="passwordEncoder"
> ref="md5PasswordEncoder" />
> </bean>
> </list>
>
> ..
> ..
> ..
> ..
>
> <!-- Data source definition -->
> <bean id="dataSource"
> class="org.apache.commons.dbcp.BasicDataSource">
> <property name="driverClassName">
> <value>${database.driver}</value>
> </property>
> <property name="url">
> <value>${database.url}</value>
> </property>
> <property name="username">
> <value>${database.username}</value>
> </property>
> <property name="password">
> <value>${database.password}</value>
> </property>
> </bean>
> <bean id="md5PasswordEncoder"
> class="org.jasig.cas.authentication.handler.DefaultPasswordEncoder">
> <constructor-arg index="0">
> <value>MD5</value>
> </constructor-arg>
> </bean>
> </beans>
>
>
>
> Thanks!!!
>
>
>
> --
> *
> Ronen Itkin*
> Taykey | www.taykey.com
>
>
--
*
Ronen Itkin*
Taykey | www.taykey.com
--
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