https://apereo.github.io/cas/4.2.x/installation/Whitelist-Authentication.html 
<https://apereo.github.io/cas/4.2.x/installation/Whitelist-Authentication.html>

Cheers,
D.

> On Oct 14, 2016, at 9:21 AM, Xin Gong <[email protected]> wrote:
> 
> Hi Dmitriy,
> 
> Thank you so much for your quick reply. I have tried CAS 4.2.6. I got a 
> different error. I believe it is because I added the following whitelist in 
> [/WEB-INF/deployerConfigContext.xml file. 
> 
> <bean class="org.jasig.cas.adaptors.generic.AcceptUsersAuthenticationHandler">
>     <property name="users">
>       <map> <entry key="scott" value="password" /></map>
>     </property>
> </bean>
> 
> I followed the example in 
> https://apereo.github.io/cas/4.0.x/installation/Whitelist-Authentication.html 
> <https://apereo.github.io/cas/4.0.x/installation/Whitelist-Authentication.html>.
>  it is probably too old. not sure how to add whitelist in the new CAS module.
> 
> Best regards,
> 
> Xin
> 
> 
> On Thu, Oct 13, 2016 at 3:30 PM, Dmitriy Kopylenko <[email protected] 
> <mailto:[email protected]>> wrote:
> Wrong module and package. v 4.0.0 has the 
> org.jasig.cas.authentication.AcceptUsersAuthenticationHandler in the 
> 'cas-server-core’ module. But more generally, v 4.0,0 is pretty old, so I’d 
> suggest moving into the latest version of CAS.
> 
> Cheers,
> D.
> 
>> On Oct 13, 2016, at 3:14 PM, Xin Gong <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>> Hi,
>> 
>> I have tried to set up cas server. I have added this for 
>> AcceptUsersAuthenticationHandler to pom.xml 
>> <dependency>
>>       <groupId>org.jasig.cas</groupId>
>>       <artifactId>cas-server-support-generic</artifactId>
>>       <version>4.0.0</version>
>> </dependency>
>> 
>> After I reboot tomcat container, I see cas-server-support-generic-4.0.0.jar 
>> under $TOMCAT_HOME/webapps/cas-server-webapp-4.0.0/WEB-INF/lib.
>> 
>> However, there is an error in catalina.out;
>> 
>> org.springframework.beans.factory.BeanCreationException: Error creating bean 
>> with name 'scheduler' defined in ServletContext resource 
>> [/WEB-INF/spring-configuration/applicationContext.xml]: Invocation of init 
>> method failed; nested exception is 
>> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find 
>> class [org.jasig.cas.adaptors.generic.AcceptUsersAuthenticationHandler] for 
>> bean with name 
>> 'org.jasig.cas.adaptors.generic.AcceptUsersAuthenticationHandler#0' defined 
>> in ServletContext resource [/WEB-INF/deployerConfigContext.xml]; nested 
>> exception is java.lang.ClassNotFoundException: 
>> org.jasig.cas.adaptors.generic.AcceptUsersAuthenticationHandler
>> 
>> Thank you for help!
>> 
>> Xin
>> 
>> -- 
>> CAS gitter chatroom: https://gitter.im/apereo/cas 
>> <https://gitter.im/apereo/cas>
>> CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html 
>> <https://apereo.github.io/cas/Mailing-Lists.html>
>> CAS documentation website: https://apereo.github.io/cas 
>> <https://apereo.github.io/cas>
>> CAS project website: https://github.com/apereo/cas 
>> <https://github.com/apereo/cas>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "CAS Community" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] 
>> <mailto:[email protected]>.
>> To post to this group, send email to [email protected] 
>> <mailto:[email protected]>.
>> Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/ 
>> <https://groups.google.com/a/apereo.org/group/cas-user/>.
>> To view this discussion on the web visit 
>> https://groups.google.com/a/apereo.org/d/msgid/cas-user/ca2f8002-57a1-40cd-acac-173fea1c6264%40apereo.org
>>  
>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/ca2f8002-57a1-40cd-acac-173fea1c6264%40apereo.org?utm_medium=email&utm_source=footer>.
>> For more options, visit https://groups.google.com/a/apereo.org/d/optout 
>> <https://groups.google.com/a/apereo.org/d/optout>.
> 
> 
> 
> 
> -- 
> Xin

-- 
CAS gitter chatroom: https://gitter.im/apereo/cas
CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
CAS documentation website: https://apereo.github.io/cas
CAS project website: https://github.com/apereo/cas
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/175E504D-FE69-4C44-97D7-4E11087B3AC0%40unicon.net.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

Reply via email to