Conventions
export CAS_SRC_DIR=`pwd` # somewhereYes, I assume we are on root directory of our CAS Gradle overlay.
Configure CAS
CAS Project
Add dependency at $CAS_SRC_DIR/cas/build.gradle:
compile "org.apereo.cas:cas-server-support-ldap:${project.'cas.version'}"Configuration
Add to $CAS_SRC_DIR/etc/cas/config/cas.properties:
# Disable casusercas.authn.accept.users=
# LDAP authenticationcas.authn.ldap[0].type=ANONYMOUScas.authn.ldap[0].ldapUrl=ldaps://ldap.example.org:636cas.authn.ldap[0].useSsl=truecas.authn.ldap[0].baseDn=dc=example,dc=orgcas.authn.ldap[0].userFilter=uid={user}It is needed that we access LDAP via SSL/TLS connection. For OpenLDAP, we must specify the port.
Re-deploy
./deploy package./deploy run
