Thanks Scott. The class error is gone with your advice.
 
I get the message "The credentials you provided are not supported by CAS" what 
am i not doing right...


--- On Thu, 2/11/10, Scott Battaglia <[email protected]> wrote:


From: Scott Battaglia <[email protected]>
Subject: Re: [cas-user] CAS Active Directory LDAP Support
To: [email protected]
Date: Thursday, February 11, 2010, 9:41 PM


Please re-read that LDAP page. There are a few points on it where it says after 
3.3.2 you need to use the LdapContextSource included with Spring LDAP.



On Fri, Feb 12, 2010 at 12:27 AM, Maina Watare <[email protected]> wrote:






Thanks for your reply.
I am using CAS 3.3.5.

--- On Thu, 2/11/10, Scott Battaglia <[email protected]> wrote:


From: Scott Battaglia <[email protected]>
Subject: Re: [cas-user] CAS Active Directory LDAP Support
To: [email protected]
Date: Thursday, February 11, 2010, 8:51 AM





You don't mention which CAS you're using.   If you're using the most recent 
version of CAS check that LDAP page for the alternative to 
AuthenticatedLdapContextSource


-Scott Battaglia
PGP Public Key Id: 0x383733AA
LinkedIn: http://www.linkedin.com/in/scottbattaglia



On Thu, Feb 11, 2010 at 10:43 AM, Maina Watare <[email protected]> wrote:







Hi All,I am a newbie on CAS.I want to get CAS to authenticate against Active 
Directory username/password
I have been following the article on 
http://www.ja-sig.org/wiki/display/CASUM/LDAP with little success.My Setup is 
1. Tomcat 6.02. apache-maven-2.2.13. Windows Xp4. AD Ms Win 2008Currently i am 
getting the following errors on the Tomcat log fileused by: 
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find 
class [org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource] for 
bean with name 'contextSource' defined in ServletContext resource 
[/WEB-INF/deployerConfigContext.xml]; nested exception is 
java.lang.ClassNotFoundException: 
org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource




 at 
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1141)
 at
 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:524)
 at 
org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1177)




 at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:222)
 at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:303)




 at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:297)
 at 
org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:941)




 at 
org.jasig.cas.util.AutowiringSchedulerFactoryBean.afterPropertiesSet(AutowiringSchedulerFactoryBean.java:31)
 at
 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
 at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)




 ... 40 more
Caused by: java.lang.ClassNotFoundException: 
org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource
 at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1484)
 at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1329)




 at org.springframework.util.ClassUtils.forName(ClassUtils.java:211)
 at 
org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:385)
 at 
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1138)




 ... 49
 more
SafeContextLoaderListener: 
The Spring ContextLoaderListener we wrap threw on contextInitialized.
But for our having caught this error, the web application context would not 
have initialized.
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.ldap.util.AuthenticatedLdapContextSource] for 
bean with name 'contextSource' defined in ServletContext resource 
[/WEB-INF/deployerConfigContext.xml]; nested exception is 
java.lang.ClassNotFoundException: 
org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource




 at
 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
 at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)




 at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
 at java.security.AccessController.doPrivileged(Native Method)
 at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)




 at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
 at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)




 at
 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
 at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
 at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)




 at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
 at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)




 at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
 at 
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)



 at 
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)

 at
 
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
 at 
org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized(SafeContextLoaderListener.java:62)
 at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)




 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
 at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)




 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
 at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
 at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)




 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
 at
 org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
 at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)




 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)




 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
 at org.apache.catalina.core.StandardService.start(StandardService.java:516)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)




 at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
 Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)




Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: 
Cannot find class 
[org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource] for bean with 
name 'contextSource' defined in ServletContext resource 
[/WEB-INF/deployerConfigContext.xml]; nested exception is 
java.lang.ClassNotFoundException: 
org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource




 at 
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1141)
 at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:524)




 at
 
org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1177)
 at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:222)




 at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:303)
 at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:297)




 at 
org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:941)
 at 
org.jasig.cas.util.AutowiringSchedulerFactoryBean.afterPropertiesSet(AutowiringSchedulerFactoryBean.java:31)




 at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
 at
 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
 ... 40 more
Caused by: java.lang.ClassNotFoundException: 
org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource




 at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1484)
 at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1329)
 at org.springframework.util.ClassUtils.forName(ClassUtils.java:211)




 at 
org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:385)
 at 
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1138)




 ... 49 more Please Help..Thanks ,Watare
-- 
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


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