Mohamed,
The only change I made to build.gradle was add the ldap repository dependency. You do not need to adjust the security filter chain.
The version in getcas... is 6.6.4
Is this the version you are using?
Sorry, I forgot to say that management.properties is in etc/cas/config/
It is a basic file to run when no dependencies are selected.
You can edit this file and the build process will [try to] place it in /etc/cas/config - cas management will look for it there by default.
You can also copy this file to a directory of your choosing and tell cas management to look there with tomcat/jvm startup options or placed in TOMCAT_HOME/bin/setenv.sh
As an example, this is in my setenv
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS \
--add-exports java.base/jdk.internal.ref=ALL-UNNAMED \
--add-opens java.base/java.lang=ALL-UNNAMED \
--add-opens java.base/java.nio=ALL-UNNAMED \
--add-opens java.management/sun.management=ALL-UNNAMED \
--add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED"
export JDK_JAVA_OPTS
CATALINA_OPTS="$CATALINA_OPTS -Dspring.config.additional-location=/etc/cas/config/bootstrap.yml,classpath:/application.yml,/etc/cas/config/application.properties,/etc/cas/config/management.properties"
export CATALINA_OPTS
Ray