I have a problem with file authentication. It doesn't work with
MD5-encoded passwords in a file.

I get this error:

INFO [org.jasig.cas.authentication.AuthenticationManagerImpl] -
AuthenticationHandler:
org.jasig.cas.adaptors.generic.FileAuthenticationHandler failed to
authenticate the user which provided the following credentials: [username:
[email protected]]
2010-05-29 04:35:48,319 ERROR
[org.jasig.cas.adaptors.generic.FileAuthenticationHandler] - Could not open
ServletContext resource [/usr/local/tomcat/webapps/cas/password]


I figured this entry should be fine:

<bean class="org.jasig.cas.adaptors.generic.FileAuthenticationHandler">
        <property name="fileName" value="/usr/local/tomcat/webapps/cas/password"
/>
        <property name="passwordEncoder">
                <bean
class="org.jasig.cas.authentication.handler.DefaultPasswordEncoder">
                        <constructor-arg index="0" value="MD5" />
                </bean>
        </property>
</bean>

It works fine with a password file in clear text with the same file
permissions:

<bean class="org.jasig.cas.adaptors.generic.FileAuthenticationHandler"
        p:fileName="file:/usr/local/tomcat/webapps/cas/password" />


Any hints?

-- 
Reino Wallin

-- 
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

Reply via email to