username is not a valid user in your xml configuration file:

AuthenticationHandler:
org.acegisecurity.adapters.cas3.CasAuthenticationHandler failed to
authenticate the user which provided the following credentials: username.

Though if all you're doing is using the InMemoryData store I'm not sure why
you're using Acegi's.  CAS includes one.


On Wed, Jul 9, 2008 at 2:49 PM, SMallik <[EMAIL PROTECTED]> wrote:

>
> Thanks Scott,
> I added this
> <bean class="org.acegisecurity.adapters.cas3.CasAuthenticationHandler">
>  <property name="authenticationManager" ref="casAuthenticationManager" />
> </bean>
> to AuthenticationHandlers and got the following in log :
>
> 2008-07-09 12:31:56,892 INFO
> [org.jasig.cas.authentication.AuthenticationManagerImpl] -
> AuthenticationHandler:
> org.acegisecurity.adapters.cas3.CasAuthenticationHandler failed to
> authenticate the user which provided the following credentials: username.
>
> In case of CAS Server 3.0.7 I was writing below written code and it was
> working fine :
>
> <bean class="org.acegisecurity.adapters.cas3.CasAuthenticationHandler">
>  <property name="authenticationManager" ref="acegiAuthenticationManager" />
> </bean>
> <bean id="daoAuthenticationProvider"
> class="org.acegisecurity.providers.dao.DaoAuthenticationProvider">
>  <property name="userDetailsService"><ref
> bean="inMemoryDaoImpl"/></property>
> </bean>
> <bean id="acegiAuthenticationManager"
> class="org.acegisecurity.providers.ProviderManager">
>  <property name="providers">
>     <list>
>         <ref bean="daoAuthenticationProvider"/>
>    </list>
> </property>
> </bean>
> <bean id="inMemoryDaoImpl"
> class="org.acegisecurity.userdetails.memory.InMemoryDaoImpl">
>  <property name="userMap">
>   <value>
>     username=password,ROLES_IGNORED_BY_CAS
>   </value>
>  </property>
> </bean>
>
> ---------------------------------------
>
>
> SMallik wrote:
> >
> > Hi ,
> > I have CAS server 3.0.7+ Casclient 2.0.11 working successfully with both
> > InMemoryDao and LDAP but I found that 3.0.7 does not support Single Sign
> > Out. So , I have decided to work with CAS 3.1.1+casclient 2.1.1 . Though
> > default implementation of CAS is working but when I am commenting
> > SimpleTestUsernamePasswordAuthenticationHandler in
> > deployerConfigContext.xml and try to use inMemoryDaoImpl it is not
> working
> > - I get this message "The credentials you provided are not supported by
> > CAS" in login screen. I have attached config files.I am not understaning
> > where and what to change. Please someone help me out.
> >
> > Thanks
> >
> >  http://www.nabble.com/file/p18366048/acegi-config.txt acegi-config.txt
> > http://www.nabble.com/file/p18366048/deployerConfigContext_3.0.7.txt
> > deployerConfigContext_3.0.7.txt
> > http://www.nabble.com/file/p18366048/deployerConfigContext_3.1.1.txt
> > deployerConfigContext_3.1.1.txt
> >  http://www.nabble.com/file/p18366048/cas_properties.txt
> > cas_properties.txt
> >  http://www.nabble.com/file/p18366048/web.txt web.txt
> >
>
> --
> View this message in context:
> http://www.nabble.com/Problem-in-setting-up-CAS-Server-3.1.1-tp18366048p18368267.html
> Sent from the CAS Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Yale CAS mailing list
> [email protected]
> http://tp.its.yale.edu/mailman/listinfo/cas
>
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to