Please check this bean entry in deployer..xml
<bean id="contextSource"
class="org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource">
<property name="authenticatedReadOnly" value="false" />
<property name="userName" value="" />
<property name="password" value="" />
<property name="urls">
<list>
<value>ldap://XX.XXX.X.XXX:389/</value>
</list>
</property>
<property name="baseEnvironmentProperties">
<map>
<entry>
<key><value>java.naming.security.authentication</value></key>
<value>simple</value>
</entry>
</map>
</property>
</bean>
What should i give for UserName and Password?
Should i give the Distinguished Name and password that i normally use in
httpd.conf(Apache web-server + weblogic) and what should i give for URLs list
Please let me know
Thanks
Scott Battaglia <[EMAIL PROTECTED]> wrote: If you're using a non-Sun JVM, then
you need to set the "responseControlFactory" property on the ContextSource.
The default is an internal Sun implementation.
-Scott
On 6/19/07, sriram purushothaman <[EMAIL PROTECTED]> wrote: Hi
I have done LDAP authentication using Apache Webserver 2.0.59 and Weblogic 8.1
and I am successful with it. Now i want to do it with CAS.
I am new to CAS and i am trying out few stuff. I am using Tomcat 5.5.16, JDK
1.42
1. I have download cas-server-3.0.7 and cas-client-java-2.1.1
2. I have downloaded cas-server-ldap-3.0.7 JAR , spring-ldap1.1.2 JAR,
ldapbp1.0 JAR and put these 3 JARs in localplugins/lib folder.
3. Did ant jar and ant war. Got the localplugins.jar and the WAR file
4. I changed my deployerConfigContext.xml. I have attached the same here.Please
check and tell me whether it is correct.
5. Copied the WAR into my tomcat/webapps
6. When i start my tomcat, i am getting the attached error.
I have downloaded this folder structure com.sun.jndi.ldap.<>, but not sure what
to do with it.
Regards,
Sriram
---------------------------------
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
2007-06-19 14:55:45,250 ERROR [org.springframework.web.context.ContextLoader] -
<Context initialization failed>
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'centralAuthenticationService' defined in ServletContext resource
[/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean
'authenticationManager' while setting bean property 'authenticationManager';
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'authenticationManager' defined in ServletContext
resource [/WEB-INF/deployerConfigContext.xml]: Cannot create inner bean '
org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler#b2e752' of type
[org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler] while setting bean
property 'authenticationHandlers' with key [1]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler#b2e752'
defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]: Cannot
resolv!
e reference to bean 'contextSource' while setting bean property
'contextSource'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'contextSource' defined in ServletContext resource
[/WEB-INF/deployerConfigContext.xml]: Instantiation of bean failed; nested
exception is java.lang.NoClassDefFoundError:
com.sun.jndi.ldap.ctl.ResponseControlFactory
Caused by:
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'authenticationManager' defined in ServletContext resource
[/WEB-INF/deployerConfigContext.xml]: Cannot create inner bean '
org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler#b2e752' of type
[org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler] while setting bean
property 'authenticationHandlers' with key [1]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler#b2e752'
defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]: Cannot
resolve reference to bean 'contextSource' while setting bean property
'contextSource'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'contextSource' defined in ServletContext resource
[/WEB-INF/deployerConfigContext.xml]: Instantiation of bean failed; nested
exce!
ption is java.lang.NoClassDefFoundError:
com.sun.jndi.ldap.ctl.ResponseControlFactory
Caused by:
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler#b2e752 '
defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]: Cannot
resolve reference to bean 'contextSource' while setting bean property
'contextSource'; nested exception is
org.springframework.beans.factory.BeanCreationException : Error creating bean
with name 'contextSource' defined in ServletContext resource
[/WEB-INF/deployerConfigContext.xml]: Instantiation of bean failed; nested
exception is java.lang.NoClassDefFoundError:
com.sun.jndi.ldap.ctl.ResponseControlFactory
Caused by:
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'contextSource' defined in ServletContext resource
[/WEB-INF/deployerConfigContext.xml]: Instantiation of bean failed; nested
exception is java.lang.NoClassDefFoundError:
com.sun.jndi.ldap.ctl.ResponseControlFactory
Caused by:
java.lang.NoClassDefFoundError: com.sun.jndi.ldap.ctl.ResponseControlFactory
at org.springframework.ldap.support.LdapContextSource.class$
(LdapContextSource.java:42)
at
org.springframework.ldap.support.LdapContextSource.<clinit>(LdapContextSource.java:42)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:84)
at org.springframework.beans.BeanUtils.instantiateClass
(BeanUtils.java:60)
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:45)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean
(AbstractAutowireCapableBeanFactory.java:739)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:727)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
(AbstractAutowireCapableBeanFactory.java:390)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:254)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton
(DefaultSingletonBeanRegistry.java:144)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:251)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:163)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:271)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary
(BeanDefinitionValueResolver.java:128)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1047)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean
(AbstractAutowireCapableBeanFactory.java:843)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean
(BeanDefinitionValueResolver.java:221)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:111)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList
(BeanDefinitionValueResolver.java:291)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:132)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues
(AbstractAutowireCapableBeanFactory.java:1047)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:843)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
(AbstractAutowireCapableBeanFactory.java:427)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:254)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton
(DefaultSingletonBeanRegistry.java:144)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:251)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:163)
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas
--
-Scott Battaglia
LinkedIn: http://www.linkedin.com/in/scottbattaglia
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas
---------------------------------
We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list._______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas