Hello
Thanks for the hint per
CasManagementConfigurationProperties.java Have been really struggling with this one as well. Really feel cas-management is behind cas and sure hope the recent indicators of moving dashboards from cas to cas-management means better product eventually.
Ranting aside, cas-management 6.1 RC4, these two flags end up as non-bound and service will fail/crash to restart.
mgmt.enableVersionControl=false
mgmt.enableDelegatedMgmt=false
Overlaying this file src/main/java/org/apereo/cas/configuration/CasManagementConfigurationProperties.java by setting the two references you alluded to false it will compile but then on restart it will throw tons of errors about ALL mgmt parameters being unbound. If you can figure out what I could have missed by just modifying that code directly that would be great.
Added this to build.gradle
compile "org.apereo.cas:cas-mgmt-api-core:${project.'casmgmt.version'}"
compile "org.projectlombok:lombok:1.18.8"
Then tried the 6.1. RC5 snapshot, maybe those two parameters that are in documentation would work but nope, it would crash per some collusion about groovy libraries and such, anyway gave up on that front, it is snapshot after all.
HERE is what currently WORKS for me (not sure if it breaks anything else but I am past the point of desperation)
1) deploy cas-management.war and explode into webapps (remove war afterwards)
rm -v $CATALINA_BASE/webapps/cas-management/WEB-INF/lib/cas-mgmt-config-version-control-6.1.0-RC4.jar
rm -v $CATALINA_BASE/webapps/cas-management/WEB-INF/lib/cas-mgmt-config-delegated-6.1.0-RC4.jar
Now here are other gems
1) using JPA so would really like to tell JSON to take a back-seat.
cas.serviceRegistry.initFromJson=false
YET it loads from services default or whatever you specify including commenting out or leaving default or whatever: cas.serviceRegistry.json.location=classpath:/services
Implicit PROBLEM for me: when you create new service you see double entries. One for JPA, the other one for json. Which is which?
Workaround:
1) do not specify at all cas.serviceRegistry.json.location in config (not sure it matters)
2) same as above post explode cas-management.war (not sure how can I remove them from overlay, I could just try empty files in overlay but removing is cleaner)
rm -v $CATALINA_BASE/webapps/cas-management/WEB-INF/classes/services/*.json
Another headache: I want to have search work for me. Why can't I change the path of luceneIndexDir. (no parameter, nor can change and compile above without other failures)
So must create folder /etc/cas/lucene even though for this scenario it is just a placeholder, so I can get search working. I never see anything get stored there?
And finally, really no idea why but if you logout the manager with a success message at /cas-management/logout.html,
throws an exception 500 in access logs like "GET /cas-management/error?ticket=ST-XYZ... but you click on "Services Management" link to get you back to /cas-management/manage.html and then cas-management is unavailable.
WORKAROUND: just change URL to /cas-management/ and voila you are back to admin
Stuff like this, I really really hope cas-management gets its love back. Not gonna bother with discoveryEndpointPath = "/actuator/discoveryProfile" and how to actually properly securely setup magical setting in CAS separate service itself to that cas-management can get info. Tried but at this point I am happy to just use the web app.
All the best.