Admittedly the CAS Mgmt documentation is lagging some of the latest refactors in the snapshots. I usually try and make an effort when GA rolls around to try and make sure at least config properties are updated. You can look here directly at the source of truth:
https://github.com/apereo/cas-management/blob/master/api/cas-mgmt-api-configuration/src/main/java/org/apereo/cas/configuration/CasManagementConfigurationProperties.java The property name would just follow object "." notation starting with "mgmt." You can specify a luceneIndexDir and I think it only uses this directory as temp storage when executing queries, so I think it is always cleaned up. Anyways Lucene needed some file system dir configured. If you are using version control then you will always see a JSONServiceRegistry popup in the logs, since JSON files in a Git repository is how that is implemented, regardless of the persistence you use for your configured service registry. Not sure what the logout thing is. For the /dashboard and discovery endpoint, I have it configured and about the only way I know it would work is to open up the admin endpoints by IP address to the IP of your running CAS Management webapp. Documentation can be found here: https://apereo.github.io/cas/development/monitoring/Monitoring-Statistics.html I do not personally use the gradle overlays or even do any real testing with them. It has turned out in the past that the overlay was picking up conflicting config from cas in the overlay that wasn't realized when just building and deploying from source. Lastly, I do believe some resources may be picking up the cause of CAS Mgmt, and I may have some more time for the OS version freeing up soon, at least will try and smooth out some rough edges for GA. As always pull requests are welcomed and encouraged. Travis On Fri, Oct 25, 2019 at 6:55 AM randomuser878 <bekim_sh...@jsi.com> wrote: > Hello > > Thanks for the hint per CasManagementConfigurationProperties.java > <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fapereo%2Fcas-management%2Fblob%2Fmaster%2Fapi%2Fcas-mgmt-api-configuration%2Fsrc%2Fmain%2Fjava%2Forg%2Fapereo%2Fcas%2Fconfiguration%2FCasManagementConfigurationProperties.java&sa=D&sntz=1&usg=AFQjCNGKk-9GoRnbTlFKOJ0504FhzEjwhg> > 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. > > > > > On Tuesday, September 17, 2019 at 12:43:03 PM UTC-4, rbon wrote: >> >> How do I turn off version control in cas-management 6.1 RC4. >> >> In 5.3.x branch there was a config setting: mgmt.enableVersionControl=true, >> but this has been replaced by the following code (line 155 in >> https://github.com/apereo/cas-management/blob/master/api/cas-mgmt-api-configuration/src/main/java/org/apereo/cas/configuration/CasManagementConfigurationProperties.java >> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fapereo%2Fcas-management%2Fblob%2Fmaster%2Fapi%2Fcas-mgmt-api-configuration%2Fsrc%2Fmain%2Fjava%2Forg%2Fapereo%2Fcas%2Fconfiguration%2FCasManagementConfigurationProperties.java&sa=D&sntz=1&usg=AFQjCNGKk-9GoRnbTlFKOJ0504FhzEjwhg> >> ): >> private boolean enabled = ClassUtils.isPresent(" >> org.apereo.cas.mgmt.config.CasManagementVersionControlConfiguration", >> this.getClass().getClassLoader()); >> >> It looks like >> org.apereo.cas.mgmt.config.CasManagementVersionControlConfiguration >> is included by default (the libraries are in the war). All I have/want is >> ldap service registry (compile >> "org.apereo.cas:cas-server-support-ldap-service-registry:${project.'casmgmt.version'}") >> but it is being ignored. >> >> Thanks >> Ray >> >> -- >> >> Ray Bon >> Programmer Analyst >> Development Services, University Systems >> 2507218831 | CLE 019 | rb...@uvic.ca >> >> I respectfully acknowledge that my place of work is located within the >> ancestral, traditional and unceded territory of the Songhees, Esquimalt and >> WSÁNEĆ Nations. >> > -- > - Website: https://apereo.github.io/cas > - Gitter Chatroom: https://gitter.im/apereo/cas > - List Guidelines: https://goo.gl/1VRrw7 > - Contributions: https://goo.gl/mh7qDG > --- > You received this message because you are subscribed to the Google Groups > "CAS Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to cas-user+unsubscr...@apereo.org. > To view this discussion on the web visit > https://groups.google.com/a/apereo.org/d/msgid/cas-user/9acf720f-b81f-4b5d-a85f-cd3930fee1c4%40apereo.org > <https://groups.google.com/a/apereo.org/d/msgid/cas-user/9acf720f-b81f-4b5d-a85f-cd3930fee1c4%40apereo.org?utm_medium=email&utm_source=footer> > . > -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscr...@apereo.org. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAC_RtEa_9_1aVN0%3DizcaetEYU-GZb4mqmej%3D2ZifHHFH0D0k2Q%40mail.gmail.com.