Its not the authentication handler that's not working, its your
configuration.
Take a look at how the UsernamePasswordCredentials are configured to be
instantiated in the default web flow:
<view-state id="viewLoginForm" view="casLoginView" model="credentials">
<var name="credentials"
class="org.jasig.cas.authentication.principal.UsernamePasswordCredentials"
/>
<binder>
<binding property="username" />
<binding property="password" />
</binder>
<on-entry>
<set name="viewScope.commandName" value="'credentials'" />
</on-entry>
<transition on="submit" bind="true" validate="true"
to="realSubmit">
<set name="flowScope.credentials" value="credentials" />
<evaluate
expression="authenticationViaFormAction.doBind(flowRequestContext,
flowScope.credentials)" />
</transition>
</view-state>
Its set as a variable.
Cheers,
Scott
On Thu, Jun 17, 2010 at 3:33 AM, Marteau Christophe <
[email protected]> wrote:
> *** WiscMail warning: attached executable file was renamed ***
> *
> * Attached to this message is an executable file or an archive
> * that contains an executable file. The attachment has been
> * renamed for your protection.
> *
> * The file was scanned by the WiscMail anti-virus scanners and
> * no threat was found. However, executable files should be
> * treated with great caution. It's possible for viruses to
> * slip through undetected in the minutes before anti-virus
> * definitions are published.
> *
> * Please confirm with the sender that the file was sent
> * intentionally, and that the file is safe to run before
> * renaming the file by removing the "_renamed" from the end of
> * the filename.
> *
> * For more information and support, please visit the following
> * link to the DoIT Help Desk
> *
> * http://kb.wisc.edu/wiscmail/page.php?id=6056
> *
> ********************** end of warning ************************
>
> Hello,
>
> We have written an authentication manager that allows a distributed
> authentication against diffférents LDAP of our institutions and returns an
> identifier dependent on the establishment of the application given by a
> unifying LDAP user identities in different institutions.
>
> Example :
> A user of an institution A Who wants to go on an application of an
> institution B authenticates against the LDAP of institution A and the
> returned identifier (principal) is that of institution B.
>
> To run this authentication, it requires that the user can select the field
> "entity" in the login form.
>
> This handler works in version 3.3.5, but does not work in version 3.4.2,
> because the class "AuthenticationViaFormAction" didn't extends the class
> formAction Spring anymore.
>
> The configuration was the following in the file "WEB-INF/cas-servlet.xml":
> -->
> <!--
> <bean id="authenticationViaFormAction"
> class="org.jasig.cas.web.flow.AuthenticationViaFormAction"
>
> p:centralAuthenticationService-ref="centralAuthenticationService"
> p:warnCookieGenerator-ref="warnCookieGenerator" />
> -->
>
> <bean id="authenticationViaFormAction"
> class="org.jasig.cas.web.flow.AuthenticationViaFormAction"
>
> p:centralAuthenticationService-ref="centralAuthenticationService"
>
> p:formObjectClass="fr.univ_toulouse.cas.authentication.principal.EntityUsernamePasswordCredentials"
> p:validator-ref="entityUsernamePasswordValidator"
> p:warnCookieGenerator-ref="warnCookieGenerator" />
> <bean id="entityUsernamePasswordValidator"
> class="fr.univ_toulouse.cas.validation.EntityUsernamePasswordCredentialsValidator"
> />
>
> The we get the following error :
> 2010-06-17 09:18:50,268 ERROR
> [org.springframework.web.servlet.DispatcherServlet] - <Context
> initialization failed>
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'authenticationViaFormAction' defined in ServletContext
> resource [/WEB-INF/cas-servlet.xml]: Error setting property values; nested
> exception is org.springframework.beans.NotWritablePropertyException: Invalid
> property 'formObjectClass' of bean class
> [org.jasig.cas.web.flow.AuthenticationViaFormAction]: Bean property
> 'formObjectClass' is not writable or has an invalid setter method. Does the
> parameter type of the setter match the return type of the getter?08 more
>
> As attached, you will find the module and configuration multildap
>
> Can you help me to find what's wrong ?
>
> --
> MARTEAU Christophe
>
> Université Toulouse III - Paul Sabatier
> Pôle de Service Numérique
> Département Système, Réseau et Télécom
> 118, route de Narbonne
> 31000 Toulouse
>
> --
> 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