It looks like you missed the step in ther user manual on adding dependencies: ClassNotFoundException: org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler
Also, you're a little behind, CAS 3.3.3 is out ;-) Cheers, Scott On Sun, Jun 28, 2009 at 10:16 PM, David Lytle <[email protected]> wrote: > Help! Limited Java knowledge... > Had CAS demo 3.2.2 WAR file up and running just fine on Win2003, Tomcat > 5.5, JDK and Runtime 5.0_19. Have LDAPS working on LDAP server. > QUESTION 1: Presume also need SSL Cert for the CAS server itself to handle > https login, correct? > > Trying to implement Active Directory/LDAP authentication by tweaking > pom.xml and deployConfigContext.xml as per User Manual. > > QUESTION 2: see below, any suggestions? THANKS!! > When running server, now get this error in CAS.log: > 2009-06-28 21:12:18,200 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/spring-configuration/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#7bc899' of type > [org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler] while setting > bean property 'authenticationHandlers' with key [1]; nested exception is > org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find > class [org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler] for bean > with name 'org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler#7bc899' > defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]; > nested exception is java.lang.ClassNotFoundException: > org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler > > Here's my deployConfigContext.xml: > > <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="urls"> > <list> > <value>ldaps://xxxxxxxx.edu/</value> > </list> > </property> > <property name="userDn" > value="cn=xxxxxx,cn=xxxxx,cn=xxxx,cn=xxxxx,dc=xxxxx,dc=edu"/> > <property name="password" value="xxxxxx"/> > <property name="baseEnvironmentProperties"> > <map> > <entry> > <key> > <value>java.naming.security.authentication</value> > </key> > <value>simple</value> > </entry> > </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.BindLdapAuthenticationHandler"> > <property name="filter" value="sAMAccountName=%u" /> > <property name="searchBase" value="cn=xxxx,dc=xxxx,dc=edu" /> > <property name="contextSource" ref="contextSource" /> > <property name="ignorePartialResultException" value="yes" /> <!-- fix > because of how AD returns results --> > </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" /> > </beans> > > -- > 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
