Hi All,
I am trying to build a working CAS setup with primary auth as LDAP and (alternate auths in future as SAML and Database).
I searched in google for proper doc for ubuntu with CAS & LDAP setup but was not able to find one, so i started giving a try myself.
I found one video tutorial but thats for 5.x version (
https://www.youtube.com/watch?v=uuN2CvJ8I58)
Hardware specs:VM instance
2 Vcpu
2 GB RAM + 2GB Swap
8GB SSD
Software specs: Ubuntu 20.04 LTS server
JDK 11
gradle 6.3
Tomcat 9.0.35
LDAP- 389 Directory server-1.4.4.2
What I did till now:I followed this basic tutorial here
https://github.com/apereo/cas-overlay-templateAdded below lines in build.gradle (Note: if i dont add plugin:java build throws error)
apply plugin:'java'
dependencies {
compile "org.apereo.cas:cas-server-support-ldap:${project.'cas.version'}"
compile "org.apereo.cas:cas-server-support-jdbc:${project.'cas.version'}"
compile "org.apereo.cas:cas-server-support-saml:${project.'cas.version'}"
compile "org.apereo.cas:cas-server-support-pm-webflow:${project.'cas.version'}"
compile "org.apereo.cas:cas-server-webapp-config-server:${project.'cas.version'}"
}
Commands executed:
git clone https://github.com/apereo/cas-overlay-template.git
./gradlew clean build
./gradlew copyCasConfiguration
cp /home/it/cas-overlay-template/build/libs/cas.war /opt/tomcat/webapps/After this i was able to get CAS page and able to login with default 'casuser' username and 'Mellon' password.
Issue:I am not able to find the configuration files to change CAS url/ password reset URL, and LDAP connection configuration files!, I deployed cas.war in /opt/tomcat/webapps/
inside /opt/tomcat/webapps/cas/WEB-INF/classes/ i can find only these files.
drwxr-x--- 4 tomcat tomcat 4.0K May 14 06:45 ./
drwxr-x--- 4 tomcat tomcat 4.0K May 14 06:45 ../
-rw-r----- 1 tomcat tomcat 205 May 14 06:24 cas-readme.txt
-rw-r----- 1 tomcat tomcat 198 May 14 06:24 git.properties
drwxr-x--- 2 tomcat tomcat 4.0K May 14 06:45 META-INF/
drwxr-x--- 3 tomcat tomcat 4.0K May 14 06:45 org/
The /opt/tomcat/webapps/cas/WEB-INF/lib/ directory contains all jar files
The file /etc/cas/config/cas.properties containes only 4 lines and i am sure it is not taking the config from there!, as its having default URL, but i am able to access the CAS with URL
https://192.168.130.133:8443/cas .
I am not sure what i missed!, is it mandatory to install 'cas-management'? what do you guys suggest?.