I got CAS configured with LDAP and working and now I am trying to get the management webapp working. I downloaded the Maven overlay, and added the LDAP dependency according to the documentation:
<dependency>
<groupId>org.apereo.cas</groupId>
<artifactId>cas-management-webapp-support-ldap</artifactId>
<version>${cas.version}</version>
</dependency>
I built it and deployed the WAR to Tomcat but Tomcat will not start it. It keeps giving me this error:
FAIL - Application at context path /cas-services could not be started
FAIL - Encountered exception org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/cas-services]]
My CAS prefix is /cas-test and the management prefix is /cas-services. I left my management.properties mostly as is for the time being, just updating the existing values:
cas.server.name: https://localhost:8443
cas.server.prefix: https://localhost:8443/cas-test
cas.mgmt.adminRoles=ROLE_ADMIN
cas.mgmt.userPropertiesFile=file:/etc/cas/config/users.properties
cas.mgmt.serverName=https://localhost:8443
server.context-path=/cas-services
server.port=8443
spring.thymeleaf.mode=HTML
logging.config=file:/etc/cas/config/log4j2.xml
My cas.properties is also pretty minimal for now:
cas.server.name: https://localhost:8443
cas.server.prefix: https://localhost:8443/cas-test
cas.adminPagesSecurity.ip=127\.0\.0\.1
logging.config: file:/etc/cas/config/log4j2.xml
#LDAP connection info
cas.authn.accept.users=
cas.authn.ldap[0].type=AUTHENTICATED
cas.authn.ldap[0].ldapUrl=ldaps://my.ldap.org:636
cas.authn.ldap[0].useSsl=true
cas.authn.ldap[0].useStartTls=false
cas.authn.ldap[0].connectTimeout=5000
cas.authn.ldap[0].baseDn=ou=active,ou=users,ou=data,o=org
cas.authn.ldap[0].userFilter=cn={user}
cas.authn.ldap[0].subtreeSearch=true
cas.authn.ldap[0].usePasswordPolicy=true
cas.authn.ldap[0].bindDn=cn=userproxy,ou=services,o=org
cas.authn.ldap[0].bindCredential=*****
I had a similar issue with CAS but that was due to an incorrect setting in the bindDn. I don't think any of my settings are incorrect or missing. Any suggestions?