Hi CAS Community,

I am trying to configure my CAS setup with the LDAP Server. After I have
setup the DeployerConfigContext.xml, many issues came along, most of them
resolved now i have an error in CAS and catalina logs which looks like
following.

2012-02-24 18:44:41,247 INFO
> [org.jasig.cas.services.DefaultServicesManagerImpl] - Loaded 0 services.
> 2012-02-24 18:44:41,712 ERROR
> [org.jasig.cas.web.init.SafeContextLoaderListener] -
> 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.springframework.security.userdetails.memory.InMemoryDaoImpl] for
> bean with name 'userDetailsService' defined in ServletContext resource
> [/WEB-INF/deployerConfigContext.xml]; nested exception is
> java.lang.ClassNotFoundException:
> org.springframework.security.userdetails.memory.InMemoryDaoImpl
>     at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
> logs continue>>>
>


My DeployerConfigContext.xml looks like following,

<?xml version="1.0" encoding="UTF-8"?>
>      <beans xmlns="http://www.springframework.org/schema/beans";
>             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>             xmlns:p="http://www.springframework.org/schema/p";
>             xsi:schemaLocation="
> http://www.springframework.org/schema/beans
>
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>
>
>     <bean id="contextSource"
> class="org.springframework.ldap.core.support.LdapContextSource">
>       <property name="pooled" value="false"/>
>       <property name="url" value="ldap://localhost:389"; />
>       <property name="userDn" value="cn=admin,o=Zepto"/>
>       <property name="password" value="qsudodgy"/>
>       <property name="baseEnvironmentProperties">
>         <map>
>           <entry key="com.sun.jndi.ldap.connect.timeout" value="3000" />
>           <entry key="com.sun.jndi.ldap.read.timeout" value="3000" />
>           <entry key="java.naming.security.authentication" value="simple"
> />
>         </map>
>       </property>
>     </bean>
>
>  <bean id="authenticationManager"
> class="org.jasig.cas.authentication.AuthenticationManagerImpl">
>             <property name="credentialsToPrincipalResolvers">
>               <list>
>                 <bean
> class="org.jasig.cas.authentication.principal.UsernamePasswordCredentialsToPrincipalResolver"
> />
>                 <bean
> class="org.jasig.cas.authentication.principal.HttpBasedServiceCredentialsToPrincipalResolver"
> />
>               </list>
>             </property>
>             <property name="authenticationHandlers">
>               <list>
>                 <bean
> class="org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler"
>                   p:httpClient-ref="httpClient" />
>                 <bean
> class="org.jasig.cas.adaptors.ldap.FastBindLdapAuthenticationHandler" >
>                   <property name="filter"
> value="uid=%u,o=Zepto,dc=localhost" />
>                   <property name="contextSource" ref="contextSource" />
>                </bean>
>               </list>
>             </property>
>           </bean>
>        <bean id="userDetailsService"
> class="org.springframework.security.userdetails.memory.InMemoryDaoImpl">
>             <property name="userMap">
>               <value>
>               </value>
>             </property>
>           </bean>
>
>           <bean id="attributeRepository"
> class="org.jasig.services.persondir.support.StubPersonAttributeDao">
>             <property name="backingMap">
>               <map>
>                 <entry key="uid" value="uid" />
>                 <entry key="eduPersonAffiliation"
> value="eduPersonAffiliation" />
>                 <entry key="groupMembership" value="groupMembership" />
>               </map>
>             </property>
>           </bean>
>
>           <bean id="serviceRegistryDao"
> class="org.jasig.cas.services.InMemoryServiceRegistryDaoImpl" />
>       <bean id="auditTrailManager"
> class="com.github.inspektr.audit.support.Slf4jLoggingAuditTrailManager" />
>         </beans>
>

Check if you find any issue with the XML?



-Khurram ShahAd

Snr. PHP Developer,
Zepto Systems, Ltd,
Pakistan.

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