Hi,
I am having issues adding LDAP configuration to my maven overlay for the
'services-management-webapp'. Can someone give me a pointer to what I am doing
incorrectly? If I add my properties and the dependency:
<dependency>
<groupId>org.apereo.cas</groupId>
<artifactId>cas-management-webapp-support-ldap</artifactId>
<version>${cas.version}</version>
</dependency>
I get an error on startup like:
CAS Version: 5.1.3
CAS Commit Id: 154829764488219e060ac954c9aacc3449d112e0
CAS Build Date/Time: 2017-08-13T08:11:26Z
Spring Boot Version: 1.5.3.RELEASE
------------------------------------------------------------
System Date/Time: 2017-09-05T10:30:57.706
System Temp Directory: /usr/local/tomcat/temp
------------------------------------------------------------
Java Home: /usr/local/java/jre
Java Vendor: Oracle Corporation
Java Version: 1.8.0_111
JCE Installed: yes
------------------------------------------------------------
OS Architecture: amd64
OS Name: Linux
OS Version: 2.6.32-642.el6.x86_64
------------------------------------------------------------
ESC[0m
ESC[32m2017-09-05 11:09:43,486 INFO
[org.apereo.cas.mgmt.web.CasManagementWebApplicationServletInitializer] - <The
following profiles are active: standalone>ESC[m
ESC[33m2017-09-05 11:09:49,718 WARN
[org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext]
- <Exception encountered during context initialization - cancelling refresh
attempt: org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'casCoreWebConfiguration': Unsatisfied dependency
expressed through field 'casProperties'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'cas-org.apereo.cas.configuration.CasConfigurationProperties': Could
not bind properties to CasConfigurationProperties (prefix=cas,
ignoreInvalidFields=false, ignoreUnknownFields=true,
ignoreNestedProperties=false); nested exception is
java.lang.UnsupportedOperationException>ESC[m
ESC[1;31m2017-09-05 11:09:49,718 ERROR
[org.springframework.beans.factory.support.DefaultListableBeanFactory] -
<Destroy method on bean with name
'org.springframework.context.annotation.internalScheduledAnnotationProcessor'
threw an exception>ESC[m
java.lang.IllegalStateException: ApplicationEventMulticaster not initialized -
call 'refresh' before multicasting events via the context:
org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@751101cf:
startup date [Tue Sep 05 11:09:43 PDT 2017]; parent:
org.springframework.context.annotation.AnnotationConfigApplicationContext@67920589
at
org.springframework.context.support.AbstractApplicationContext.getApplicationEventMulticaster(AbstractApplicationContext.java:404)
~[spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]
...
My properties are as follows:
cas.server.name=https://dev.uvic.ca
cas.server.prefix=https://dev.uvic.ca/cas5
cas.serviceRegistry.ldap.serviceDefinitionAttribute=description
cas.serviceRegistry.ldap.idAttribute=uid
cas.serviceRegistry.ldap.objectClass=casRegisteredService
#
cas.serviceRegistry.ldap.ldapUrl=ldaps://ldapdev.uvic.ca
cas.serviceRegistry.ldap.baseDn=ou=Service
Registry,ou=CAS,ou=applications,dc=uvic,dc=ca
cas.serviceRegistry.ldap.bindDn=cn=Service
Manager,ou=CAS,ou=UVON,ou=administrators,dc=uvic,dc=ca
cas.serviceRegistry.ldap.bindCredential={cipher}BLAHBLAH
cas.serviceRegistry.initFromJson=true
#
logging.config=file:/home/uvtomcat/config/log4j2.xml
#
server.contextPath=/cas-management
#
cas.mgmt.adminRoles[0]=ROLE_ADMIN
cas.mgmt.adminRoles[1]=ROLE_SUPER_USER
#
cas.mgmt.serverName=https://dev.uvic.ca
cas.mgmt.defaultLocale=en
#
#cas.mgmt.authzAttributes[0]=memberOf
#cas.mgmt.authzAttributes[1]=groupMembership
#
#cas.mgmt.ldap.ldapAuthz.groupAttribute=
#cas.mgmt.ldap.ldapAuthz.groupPrefix=
#cas.mgmt.ldap.ldapAuthz.groupFilter=
#cas.mgmt.ldap.ldapAuthz.groupBaseDn=
cas.mgmt.ldap.ldapAuthz.rolePrefix=ROLE_
cas.mgmt.ldap.ldapAuthz.roleAttribute=description
cas.mgmt.ldap.ldapAuthz.searchFilter=uid={user}
cas.mgmt.ldap.ldapAuthz.baseDn=ou=administrators,ou=CAS,ou=applications,dc=uvic,dc=ca
#
cas.mgmt.ldap.allowMultipleResults=false
cas.mgmt.ldap.baseDn=ou=people,dc=uvic,dc=ca
cas.mgmt.ldap.ldapUrl=ldaps://ldapdev.uvic.ca
cas.mgmt.ldap.userFilter=uid={user}
cas.mgmt.ldap.bindDn=cn=Auth
Manager,ou=CAS,ou=UVON,ou=administrators,dc=uvic,dc=ca
cas.mgmt.ldap.bindCredential={cipher}BLAHBLAH
Any pointers would be appreciated.
Thanks,
Jason
Jason Castor
Senior Programmer Analyst
[email protected]<mailto:[email protected]>
--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
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/95df4113eaad490c805fad225a34b2a0%40uaru.uvic.ca.