Yet More LDAP

Scott Battaglia scott.battaglia at gmail.com
Fri May 18 10:49:58 EDT 2007


The validator that I ran it through makes it look like your XML is correct.
Everything seems to line up to. Are you still having this problem?

-Scott

On 5/15/07, Rob Wiltbank <chade at dtcc.edu> wrote:
>
> I've went back and taken a loot at the example deployerConfig and
> realized that I was missing a bit...  I've modified it, but some thing's
> still not quite right.  Here's the error I'm receiving:
>
> The Throwable encountered at context listener initialization was:
> org.springframework.beans.factory.BeanDefinitionStoreException: Line 1
> in XML document from ServletContext resource
> [/WEB-INF/deployerConfigContext.xml] is invalid; nested exception is
> org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of
> element 'property'.
>
> The Throwable encountered at dispatcher servlet initialization was:
> org.springframework.beans.factory.BeanDefinitionStoreException: Line 1
> in XML document from ServletContext resource
> [/WEB-INF/deployerConfigContext.xml] is invalid; nested exception is
> org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of
> element 'property'.
>
> ...and my new deployerConfigContext.xml
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE beans PUBLIC  "-//SPRING//DTD BEAN//EN"
> "http://www.springframework.org/dtd/spring-beans.dtd">
>
> <beans>
>     <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
> "
> />
>              <bean
> class="org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler" >
>                 <property name="filter" value="cn=%u" />
>                 <property name="searchBase" value="ou=Domain
> Users,dc=college,dc=edu" />
>                 <property name="contextSource" ref="contextSource" />
>              </bean>
>           </list>
>        </property>
>     </bean>
>
>     <bean id="contextSource"
> class="org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource">
>        <property name="authenticatedReadOnly" value="true" />
>        <property name="userName" value="ldap_ro" />
>        <property name="password" value="a_secret" />
>        <property name="urls">
>           <list>
>              <value>ldaps://ldap.college.edu/</value>
>              <value>ldaps://ldap.college.edu/</value>
>           </list>
>        </property>
>
>        <property name="baseEnvironmentProperties">
>           <map>
>              <entry>
>
> <key><value>java.naming.security.authentication</value></key>
>                 <value>simple</value>
>              </entry>
>           </map>
>        </property>
>     </bean>
> </beans>
>
> _______________________________________________
> Yale CAS mailing list
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas
>



-- 
-Scott Battaglia

LinkedIn: http://www.linkedin.com/in/scottbattaglia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20070518/f8942ec0/attachment.html 


More information about the cas mailing list