OK Let me try this again... Using CAS 3.4.2 Followed all the instructions on http://www.ja-sig.org/wiki/display/CASUM/Demo to completion successfully
Now trying to authenticate back to LDAP-AD using this doc: http://www.ja-sig.org/wiki/display/CASUM/LDAP I added the contextsource bean: <!-- Authenticated LDAP Context Source Bean from http://www.ja-sig.org/wiki/display/CASUM/LDAP --> <bean id="contextSource" class="org.springframework.ldap.core.support.LdapContextSource"> <property name="urls"> <list> <value>ldap://dc01.TEST.COM/</value> <value>ldap://dc02.TEST.COM/</value> </list> </property> <property name="userDn" value="cn=ldap,dc=TEST,dc=COM"/> <property name="password" value="XXXXXXX"/> <property name="baseEnvironmentProperties"> <map> <entry> <key> <value>java.naming.security.authentication</value> </key> <value>simple</value> </entry> </map> </property> </bean> Replaced simple authentication handler with the Bind LDAP handler: <bean class="org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler"> <property name="filter" value="sAMAccountName=%u" /> <property name="searchBase" value="ou=Accounts,ou=Employees,dc=hdesd,dc=org" /> <property name="contextSource" ref="contextSource" /> <property name="ignorePartialResultException" value="yes" /> <!-- fix because of how AD returns results --> </bean> I tried the several variations of userDetailsService: <sec:user-service id="userDetailsService"> <sec:user name="Steve" password="notused" authorities="ROLE_ADMIN" /> Error -- org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Cannot locate BeanDefinitionParser for element [flow-executor] Offending resource: ServletContext resource [/WEB-INF/cas-servlet.xml] And then this: <bean id="userDetailsService" class="org.springframework.security.userdetails.memory.InMemoryDaoImpl"> <property name="userMap"> <value> </value> </property> </bean> Error-- 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 Which seems like I am just missing a class but I don't know. I wish the documentation told me a little more about the UserDetailsService so I could figure it out myself. Any help would be appreciated. Steve -- 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
