I am trying to get 5.0.4 to authenticate with LDAP.   As soon as I add the 
ldap dependency below to the POM, I get the following error at startup.

<dependency>
    <groupId>org.apereo.cas</groupId>
    <artifactId>cas-server-support-ldap</artifactId>
    <version>${cas.version}</version>
</dependency>

An additional question is property
#cas.authn.ldap[0].dnFormat=uid=%s,ou=users,dc=example,dc=com

In our directory tree users are serveral layers deep and not all under the 
same folder.   How is this parameter configured for this situation.

CN=jim 
smith,OU=Users,OU=LibertyPark-AL,OU=OfficeswithDomainControllers,OU=OfficeLocations,DC=ad,DC=mycompay,DC=com
CN=mary.jones,OU=Users,OU=Dallas-TX,OU=OfficeswithDomainControllers,OU=OfficeLocations,DC=ad,DC=mycompay,DC=com

  __  ____     _     ____  __
 / / / ___|   / \   / ___| \ \
| | | |      / _ \  \___ \  | |
| | | |___  / ___ \  ___) | | |
| |  \____|/_/   \_\|____/  | |
 \_\                       /_/

CAS Version: 5.0.4
Apache Tomcat Version: Apache Tomcat/8.5.11
Build Date/Time: 2017-04-13T20:08:01.052Z
System Temp Directory: C:\Users\RileyJ\AppData\Local\Temp\
Java Home: C:\Program Files (x86)\Java\jre1.8.0_101
Java Vendor: Oracle Corporation
Java Version: 1.8.0_101
JCE Installed: no
OS Architecture: x86
OS Name: Windows 7
OS Version: 6.1


2017-04-13 15:08:34,633 WARN 
[org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext]
 
- <Exception encountered during context initialization - cancelling refresh 
attempt: 
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: 
Configuration problem: Error evaluating Groovy script: Unable to load 
NamespaceHandler mappings from location [META-INF/spring.handlers]
Offending resource: class path resource [deployerConfigContext.groovy]; 
nested exception is java.lang.IllegalStateException: Unable to load 
NamespaceHandler mappings from location [META-INF/spring.handlers]>
2017-04-13 15:08:35,407 ERROR 
[org.springframework.beans.factory.support.DefaultListableBeanFactory] - 
<Destroy method on bean with name 
'org.springframework.boot.autoconfigure.internalCachingMetadataReaderFactory' 
threw an exception>
java.lang.IllegalStateException: ApplicationEventMulticaster not 
initialized - call 'refresh' before multicasting events via the context: 
org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@17632c9:
 
startup date [Thu Apr 13 15:08:28 CDT 2017]; parent: 
org.springframework.context.annotation.AnnotationConfigApplicationContext@13b6d03
        at 
org.springframework.context.support.AbstractApplicationContext.getApplicationEventMulticaster(AbstractApplicationContext.java:404)
 
~[spring-context-4.3.4.RELEASE.jar!/:4.3.4.RELEASE]
        at 
org.springframework.context.support.ApplicationListenerDetector.postProcessBeforeDestruction(ApplicationListenerDetector.java:97)
 
~[spring-context-4.3.4.RELEASE.jar!/:4.3.4.RELEASE]
        at 
org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:253)
 
~[spring-beans-4.3.4.RELEASE.jar!/:4.3.4.RELEASE]
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:578)
 
~[spring-beans-4.3.4.RELEASE.jar!/:4.3.4.RELEASE]
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:554)
 
~[spring-beans-4.3.4.RELEASE.jar!/:4.3.4.RELEASE]                           
                                      

-- 
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/fd1b8329-e0e1-4be8-8bd9-524294a3623d%40apereo.org.

Reply via email to