That did it. Thanks!

 

From: James Parry [mailto:[email protected]] 
Sent: Thursday, September 06, 2012 11:15 AM
To: [email protected]
Subject: RE:[cas-user] Using DefaultPasswordEncoder with
QueryDatabaseAuthenticationHandler

 

Also relised you need to use constructor arguments.

 

<bean name="beanA" class="com.sample.BeanA">

<constructor-arg index="0"><ref bean="beanB"/></constructor-arg>

</bean>

 

 

Therefore should be:

 

<bean
class="org.jasig.cas.authentication.handler.DefaultPasswordEncoder"
id="passwordEncoder" >

<constructor-arg index="0"> <value>HmacMD5</value></constructor-arg>

</bean> 

 

 

James Parry

Senior Software Engineer

 

MegaNexus Limited

 

From: James Parry [mailto:[email protected]] 
Sent: 06 September 2012 16:05
To: [email protected]
Subject: RE:[cas-user] Using DefaultPasswordEncoder with
QueryDatabaseAuthenticationHandler

 

Looking at the Java doc for DefaultPasswordEncoder.

 

http://developer.jasig.org/projects/cas/cas-server-core/cas-server/cas-s
erver-core/apidocs/org/jasig/cas/authentication/handler/DefaultPasswordE
ncoder.html

 

I doesn't seem to contain any characterEncoding property.

 

Try removing the characterEncoding propertly 

 

James Parry

Senior Software Engineer

 

MegaNexus Limited

 

From: Stein, Eric [mailto:[email protected]] 
Sent: 06 September 2012 14:53
To: [email protected]
Subject: [cas-user] Using DefaultPasswordEncoder with
QueryDatabaseAuthenticationHandler

 

Hi,

  I'm trying to use a QueryDatabaseAuthenticationHandler to access
passwords in my database. The passwords are MD5-hashed, so I figured I
needed to use a DefaultPasswordEncoder. Based on what I've seen on the
web, I made changes to my pom.xml and deployerConfigContext.xml files.
When I try to start up the application, I'm now seeing this error:

 

Caused by: org.springframework.beans.BeanInstantiationException: Could
not instantiate bean class
[org.jasig.cas.authentication.handler.DefaultPasswordEncoder]: No
default constructor found; nested exception is
java.lang.NoSuchMethodException:
org.jasig.cas.authentication.handler.DefaultPasswordEncoder.<init>()

                at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.in
stantiate(SimpleInstantiationStrategy.java:72)

                at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.instantiateBean(AbstractAutowireCapableBeanFactory.java:990)

                ... 67 more

Caused by: java.lang.NoSuchMethodException:
org.jasig.cas.authentication.handler.DefaultPasswordEncoder.<init>()

                at java.lang.Class.getConstructor0(Class.java:2706)

                at
java.lang.Class.getDeclaredConstructor(Class.java:1985)

                at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.in
stantiate(SimpleInstantiationStrategy.java:67)

                ... 68 more

 

What am I missing? Do I need another dependency in my POM?

 

Thanks,
Eric

 

 

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

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