[cas-user] Re: CAS 6.1.3 jpa service registry doesn't work properly
Hi Maksim, I had a similar issue with CAS 6.1.x. The workaround from Michele worked for me. Please have a look at it: https://groups.google.com/a/apereo.org/d/msg/cas-user/UZRwiZdgBAA/QixAg4q1AAAJ Hope this helps. Regards, Bob On Thursday, April 2, 2020 at 3:58:09 PM UTC+2, Maksim Kopeyka wrote: > > Hi Guys, > > I used CAS 6.0.3 with jpa service registry and I have seen records in > database according to content of json files from /etc/cas/services. > After migration to CAS 6.1.3 I don't see any records in DB. > I tried > cas.serviceRegistry.jpa.ddlAuto=create-drop > and > cas.serviceRegistry.jpa.ddlAuto=update > > .I deleted tables from DB and CAS recreated it during startup but tables > still empty. Seems to me it's a bug. > > This is my properties > cas.serviceRegistry.json.location=file:/etc/cas/services > cas.serviceRegistry.initFromJson=true > cas.serviceRegistry.jpa.url=jdbc:mysql: > //${MYSQL_DATABASE_URL}:${MYSQL_DATABASE_PORT}/${MYSQL_DATABASE_NAME} > cas.serviceRegistry.jpa.dialect=org.hibernate.dialect.MySQL8Dialect > cas.serviceRegistry.jpa.user=${MYSQL_USER} > cas.serviceRegistry.jpa.password=${MYSQL_PASSWORD} > cas.serviceRegistry.jpa.ddlAuto=update > cas.serviceRegistry.jpa.driverClass=com.mysql.jdbc.Driver > > -- - 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/bb8ce73f-8249-4d7b-8e61-943b7e354cc9%40apereo.org.
Re: [cas-user] Re: Service Registry - Store in MySQL database
Thank you very much Mathieu! That workaround fixed it for me and I now have CAS Management (6.1.0-RC4) saving the services in the MySQL database. Much appreciated! Regards, Bob On Tuesday, March 24, 2020 at 5:13:09 PM UTC+1, Mathieu HETRU wrote: > > hello Bob, > i have the solution : remove the git feature from the war file (produced > by gradlew) in order to cas-management 6.1.x works fine : > > add this line in the build.gradle (in the bootWar step) : > --- > excludes = ["**/cas-mgmt-config-version-control*.jar", > "**/cas-mgmt-config-delegated*.jar", "**/HikariCP-java7-2.4.13.jar"] > --- > > Sincerly, > > Mathieu > > Le mar. 24 mars 2020 à 16:04, Bob > a > écrit : > >> Thanks Mathieu, >> >> I tried that also but never could get cas-management 6.1.x working (it >> kept using the built-in git repo, despite having properties set not to use >> that) with the MySQL data. >> Finally I gave up on cas-management and have used the workaround from >> Michele instead. >> Thanks, >> >> Bob >> >> >> On Monday, March 23, 2020 at 4:06:08 PM UTC+1, Mathieu HETRU wrote: >>> >>> Hello Bob, >>> >>> You should install cas-management web interface because the service >>> entry in the db got java objects serialized in the db blob fields in the db >>> tables. >>> >>> I have not use the initFromJson feature. >>> >>> Sincerly, >>> >>> Mathieu >>> >>> Le mardi 28 janvier 2020 12:50:54 UTC+1, Bob a écrit : >>>> >>>> Hello, >>>> >>>> We are upgrading to CAS 6.1.x. >>>> Most things seem to work fine (LDAP and reading Service Registry from >>>> json file) but we cannot get it to save the Service Registry in a MySQL >>>> casdb. >>>> Is there a way to manually enter a Service Registry into a MySQL >>>> database? >>>> >>>> Running CAS has created 3 tables in our MySQL database: >>>> >>>> regex_registered_service >>>> regex_registered_service_regex_registered_service_property >>>> regex_registered_service_registered_service_impl_contact >>>> >>>> >>>> Table regex_registered_service has the following columns: >>>> >>>> +--+ >>>> | COLUMN_NAME | >>>> +--+ >>>> | access_strategy | >>>> | attribute_release| >>>> | description | >>>> | environments | >>>> | evaluation_order | >>>> | expiration_policy| >>>> | expression_type | >>>> | id | >>>> | information_Url | >>>> | logo | >>>> | logout_type | >>>> | logout_url | >>>> | mfa_policy | >>>> | name | >>>> | privacy_Url | >>>> | proxy_policy | >>>> | proxy_ticket_expiration_policy | >>>> | public_key | >>>> | required_handlers| >>>> | response_Type| >>>> | service_Id | >>>> | service_ticket_expiration_policy | >>>> | sso_participation_policy | >>>> | theme| >>>> | username_attr| >>>> +------+ >>>> 25 rows in set (0.00 sec) >>>> >>>> How would I get the following json into this table? >>>> >>>> { >>>> "@class" : "org.apereo.cas.services.RegexRegisteredService", >>>> "serviceId" : "https://localhost:9000/dashboard;, >>>> "name" : "My App", >>>> "id" : 10001000, >>>> "description" : "My Dashboard App", >>>> "attributeReleasePolicy" : { >>>> "@class" : >>>> "org.apereo.cas.services.ReturnMappedAttributeReleasePolicy", >>>> "allowedAttributes" : { >>>> "@class" : "java.util.TreeMap", >>>> &qu
[cas-user] Re: Service Registry - Store in MySQL database
Thanks Mathieu, I tried that also but never could get cas-management 6.1.x working (it kept using the built-in git repo, despite having properties set not to use that) with the MySQL data. Finally I gave up on cas-management and have used the workaround from Michele instead. Thanks, Bob On Monday, March 23, 2020 at 4:06:08 PM UTC+1, Mathieu HETRU wrote: > > Hello Bob, > > You should install cas-management web interface because the service entry > in the db got java objects serialized in the db blob fields in the db > tables. > > I have not use the initFromJson feature. > > Sincerly, > > Mathieu > > Le mardi 28 janvier 2020 12:50:54 UTC+1, Bob a écrit : >> >> Hello, >> >> We are upgrading to CAS 6.1.x. >> Most things seem to work fine (LDAP and reading Service Registry from >> json file) but we cannot get it to save the Service Registry in a MySQL >> casdb. >> Is there a way to manually enter a Service Registry into a MySQL database? >> >> Running CAS has created 3 tables in our MySQL database: >> >> regex_registered_service >> regex_registered_service_regex_registered_service_property >> regex_registered_service_registered_service_impl_contact >> >> >> Table regex_registered_service has the following columns: >> >> +--+ >> | COLUMN_NAME | >> +--+ >> | access_strategy | >> | attribute_release| >> | description | >> | environments | >> | evaluation_order | >> | expiration_policy| >> | expression_type | >> | id | >> | information_Url | >> | logo | >> | logout_type | >> | logout_url | >> | mfa_policy | >> | name | >> | privacy_Url | >> | proxy_policy | >> | proxy_ticket_expiration_policy | >> | public_key | >> | required_handlers| >> | response_Type| >> | service_Id | >> | service_ticket_expiration_policy | >> | sso_participation_policy | >> | theme| >> | username_attr| >> +--+ >> 25 rows in set (0.00 sec) >> >> How would I get the following json into this table? >> >> { >> "@class" : "org.apereo.cas.services.RegexRegisteredService", >> "serviceId" : "https://localhost:9000/dashboard;, >> "name" : "My App", >> "id" : 10001000, >> "description" : "My Dashboard App", >> "attributeReleasePolicy" : { >> "@class" : >> "org.apereo.cas.services.ReturnMappedAttributeReleasePolicy", >> "allowedAttributes" : { >> "@class" : "java.util.TreeMap", >> "memberOf" : "authorities" >> } >> }, >> "evaluationOrder" : 100, >> "accessStrategy" : { >> "@class" : >> "org.apereo.cas.services.DefaultRegisteredServiceAccessStrategy", >> "enabled" : true, >> "ssoEnabled" : true >> } >> } >> >> Thanks in advance! >> >> Bob >> > -- - 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/85c1a43d-a4b1-4d91-9106-3ed8a4e9d92d%40apereo.org.
Re: [cas-user] Service Registry - Store in MySQL database
Hello Michele, Finally managed to get it working by commenting out the code you mentioned. Now it does read the JSON files and store it in MySQL database. I exported the database records as a SQL script and then reinstated the code so it should be good to go. Thank you very much again! Regards, Bob On Saturday, March 14, 2020 at 12:20:46 AM UTC+1, Michele Melluso wrote: > > Hi Bob, > > I had a similar regression from 6.0 to 6.1. The problem is that > EmbeddedResourceBasedServiceRegistry is registered in the registries chain. > > So, when the ServiceRegistryInitializer.java checks at row 66 if the json > service exists already, it is found from > EmbeddedResourceBasedServiceRegistry and then it is not added to > JpaTicketRegistry. > > I solved somehow by avoiding the > "embeddedJsonServiceRegistryExecutionPlanConfigurer" bean, just commenting > it away in CasServiceRegistryInitializationConfiguration.java > > // @Bean > // @ConditionalOnMissingBean(name = > "embeddedJsonServiceRegistryExecutionPlanConfigurer") > // public ServiceRegistryExecutionPlanConfigurer > embeddedJsonServiceRegistryExecutionPlanConfigurer() { > // return plan -> > plan.registerServiceRegistry(embeddedJsonServiceRegistry()); > // } > > I don't know if there will be any collateral problems, by the way now json > services are correctly copied on JpaTicketRegistry. > Wouldn't know how to fix it in a clean way as to make a pr. > > Hope it helps > Regards > Michele > > > On Thursday, January 30, 2020 at 1:00:47 PM UTC+1, Bob wrote: >> >> Thanks Misagh and Ray, >> >> I cloned the cas-overlay-template in a new location and used the settings >> Misagh suggested but I still have the same problem that my casdb still has >> an empty regex_registered_service table. >> Here's what I'm using: >> >> Here's what I'm using: >> >> CAS Version: 6.1.0 >> CAS Branch: 6.1.x >> CAS Commit Id: c92590730249df0cf26fd1b4bebd8aea8447b256 >> CAS Build Date/Time: 2019-10-28T02:43:18Z >> Spring Boot Version: 2.2.0.RELEASE >> Spring Version: 5.2.0.RELEASE >> Java Home: C:\Programs\Java\amazon-corretto\jdk11.0.3_7 >> Java Vendor: Amazon.com Inc. >> Java Version: 11.0.3 >> >> >> My dependencies in build.gradle: >> >> dependencies { >> // Other CAS dependencies/modules may be listed here... >> compile >> "org.apereo.cas:cas-server-support-ldap:${project.'cas.version'}" >> compile >> "org.apereo.cas:cas-server-support-jdbc-drivers:${project.'cas.version'}" >> compile >> "org.apereo.cas:cas-server-support-jpa-service-registry:${project.'cas.version'}" >> } >> >> >> My minimum cas.propertie (I omitted the LDAP part since that's working >> fine): >> >> cas.server.name: https://localhost:8443 >> cas.server.prefix: ${cas.server.name}/cas >> >> logging.config: file:/etc/cas/config/log4j2.xml >> >> server.ssl.key-store=file:/etc/cas/keystore.jks >> server.ssl.key-store-password= >> server.ssl.key-password=xxx >> >> cas.serviceRegistry.initFromJson=true >> cas.serviceRegistry.json.location=file:/etc/cas/config/services >> >> cas.serviceRegistry.jpa.user=xx >> cas.serviceRegistry.jpa.password=xxx >> cas.serviceRegistry.jpa.driverClass=com.mysql.cj.jdbc.Driver >> >> cas.serviceRegistry.jpa.url=jdbc:mysql://localhost:3306/casdb?allowPublicKeyRetrieval=true=UTF-8=FALSE >> cas.serviceRegistry.jpa.dialect=org.hibernate.dialect.MySQL57InnoDBDialect >> cas.serviceRegistry.jpa.ddlAuto=update >> >> >> When I run CAS 6.1.0 I see: >> >> [org.apereo.cas.services.AbstractServicesManager] - > service(s) from [EmbeddedResourceBasedServiceRegistry,JpaServiceRegistry].> >> >> >> I can then use CAS to login to my application, but it does not insert any >> Service Registry into the MySQL casdb. >> Do you see anything wrong in my setup? >> Thanks, >> >> Bob >> >> On Wednesday, January 29, 2020 at 11:21:24 AM UTC+1, Misagh Moayyed wrote: >>> >>> >>> Something along the following lines should work: >>> >>> cas.serviceRegistry.initFromJson=true >>> cas.serviceRegistry.json.location=file:/etc/cas/config/services >>> >>> - Then, make sure your JSON files are in the above noted directory. >>> - Then, make sure your overlay contains a reference to the JPA service >>> registry >>> >>> (You do not need to include the JSON service registry, IIRC, in the &
Re: [cas-user] Service Registry - Store in MySQL database
Thank you Michele, If I can disable it just once to get some data in my MySQL database that would be enough for me. I'll try it out. By the way, I'm currently testing with CAS 6.1.4 and don't see your code snippet so it probably changed already. Will do some digging to get the same result. Your reply is much appreciated! Thanks, Bob On Saturday, March 14, 2020 at 12:20:46 AM UTC+1, Michele Melluso wrote: > > Hi Bob, > > I had a similar regression from 6.0 to 6.1. The problem is that > EmbeddedResourceBasedServiceRegistry is registered in the registries chain. > > So, when the ServiceRegistryInitializer.java checks at row 66 if the json > service exists already, it is found from > EmbeddedResourceBasedServiceRegistry and then it is not added to > JpaTicketRegistry. > > I solved somehow by avoiding the > "embeddedJsonServiceRegistryExecutionPlanConfigurer" bean, just commenting > it away in CasServiceRegistryInitializationConfiguration.java > > // @Bean > // @ConditionalOnMissingBean(name = > "embeddedJsonServiceRegistryExecutionPlanConfigurer") > // public ServiceRegistryExecutionPlanConfigurer > embeddedJsonServiceRegistryExecutionPlanConfigurer() { > // return plan -> > plan.registerServiceRegistry(embeddedJsonServiceRegistry()); > // } > > I don't know if there will be any collateral problems, by the way now json > services are correctly copied on JpaTicketRegistry. > Wouldn't know how to fix it in a clean way as to make a pr. > > Hope it helps > Regards > Michele > > > On Thursday, January 30, 2020 at 1:00:47 PM UTC+1, Bob wrote: >> >> Thanks Misagh and Ray, >> >> I cloned the cas-overlay-template in a new location and used the settings >> Misagh suggested but I still have the same problem that my casdb still has >> an empty regex_registered_service table. >> Here's what I'm using: >> >> Here's what I'm using: >> >> CAS Version: 6.1.0 >> CAS Branch: 6.1.x >> CAS Commit Id: c92590730249df0cf26fd1b4bebd8aea8447b256 >> CAS Build Date/Time: 2019-10-28T02:43:18Z >> Spring Boot Version: 2.2.0.RELEASE >> Spring Version: 5.2.0.RELEASE >> Java Home: C:\Programs\Java\amazon-corretto\jdk11.0.3_7 >> Java Vendor: Amazon.com Inc. >> Java Version: 11.0.3 >> >> >> My dependencies in build.gradle: >> >> dependencies { >> // Other CAS dependencies/modules may be listed here... >> compile >> "org.apereo.cas:cas-server-support-ldap:${project.'cas.version'}" >> compile >> "org.apereo.cas:cas-server-support-jdbc-drivers:${project.'cas.version'}" >> compile >> "org.apereo.cas:cas-server-support-jpa-service-registry:${project.'cas.version'}" >> } >> >> >> My minimum cas.propertie (I omitted the LDAP part since that's working >> fine): >> >> cas.server.name: https://localhost:8443 >> cas.server.prefix: ${cas.server.name}/cas >> >> logging.config: file:/etc/cas/config/log4j2.xml >> >> server.ssl.key-store=file:/etc/cas/keystore.jks >> server.ssl.key-store-password= >> server.ssl.key-password=xxx >> >> cas.serviceRegistry.initFromJson=true >> cas.serviceRegistry.json.location=file:/etc/cas/config/services >> >> cas.serviceRegistry.jpa.user=xx >> cas.serviceRegistry.jpa.password=xxx >> cas.serviceRegistry.jpa.driverClass=com.mysql.cj.jdbc.Driver >> >> cas.serviceRegistry.jpa.url=jdbc:mysql://localhost:3306/casdb?allowPublicKeyRetrieval=true=UTF-8=FALSE >> cas.serviceRegistry.jpa.dialect=org.hibernate.dialect.MySQL57InnoDBDialect >> cas.serviceRegistry.jpa.ddlAuto=update >> >> >> When I run CAS 6.1.0 I see: >> >> [org.apereo.cas.services.AbstractServicesManager] - > service(s) from [EmbeddedResourceBasedServiceRegistry,JpaServiceRegistry].> >> >> >> I can then use CAS to login to my application, but it does not insert any >> Service Registry into the MySQL casdb. >> Do you see anything wrong in my setup? >> Thanks, >> >> Bob >> >> On Wednesday, January 29, 2020 at 11:21:24 AM UTC+1, Misagh Moayyed wrote: >>> >>> >>> Something along the following lines should work: >>> >>> cas.serviceRegistry.initFromJson=true >>> cas.serviceRegistry.json.location=file:/etc/cas/config/services >>> >>> - Then, make sure your JSON files are in the above noted directory. >>> - Then, make sure your overlay contains a reference to the JPA service >>> registry >>> >>> (You do not need to include the
Re: [cas-user] 6.2.x Gradle Compilation
To get a lot less errors in your log I would start with making sure that you have this directory (and writable for the user that is used to start CAS) : /var/log/ On Tuesday, February 11, 2020 at 4:04:20 PM UTC+1, Dmitriy Kopylenko wrote: > > A full log would be useful > On Feb 11, 2020, 10:02 -0500, Jérémie Pilette >, wrote: > > Hi Dmitry, > > add this > *spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.web.embedded.EmbeddedWebServerFactoryCustomizerAutoConfiguration* > > in the /etc/cas/config/cas.properties file. > > I have made it No changes. (http 404) > > Please note I do not have a json file in the /etc/cas/services directory > yet. > > Jérémie > > > Le mardi 11 février 2020 15:34:45 UTC+1, Dmitriy Kopylenko a écrit : >> >> Hi there. >> >> Keep *cas.serviceRegistry.json.location=file:/etc/cas/services* >> >> And add the following property: >> *spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.web.embedded.EmbeddedWebServerFactoryCustomizerAutoConfiguration* >> >> And restart Tomcat. >> >> Best, >> D. >> >> >> On Feb 11, 2020, 09:32 -0500, Jérémie Pilette , >> wrote: >> >> The same by changing >> >> *cas.serviceRegistry.config.location=file:/etc/cas/services* >> by >> *cas.serviceRegistry.json.location=file:/etc/cas/services* >> >> Jérémie >> >> >> Le mar. 11 févr. 2020 à 14:49, Jérémie Pilette a >> écrit : >> >>> Hi Ray, >>> thank you for your response. >>> I have uncommented the line *cas.serviceRegistry.config.location: >>> file:/etc/cas/services*.(/ets/cas/config) >>> But it doen't make anaything. >>> I have change the owner too > chown -R tomcat:tomcat /etc/cas/services. >>> No changes... >>> Here this my *catalina.log* : >>> >>> [...] >>> [2020-02-11 13:26:52] [info] Starting Servlet engine: [Apache Tomcat/9.0 >>> .16 (Debian)] >>> [2020-02-11 13:26:52] [info] Deploying deployment descriptor [/etc/ >>> tomcat9/Catalina/localhost/manager.xml] >>> [2020-02-11 13:26:52] [warning] The path attribute with value [/manager] >>> in deployment descriptor [/etc/tomcat9/Catalina/localhost/manager.xml] has >>> been ignored >>> [2020-02-11 13:26:52] [info] At least one JAR was scanned for TLDs yet >>> contained no TLDs. Enable debug logging for this logger for a complete list >>> of JARs that were scanned but no TLDs were found in them. Skipping unneeded >>> JARs during scanning can improve startup time and JSP compilation time. >>> [2020-02-11 13:26:52] [info] Deployment of deployment descriptor >>> [/etc/tomcat9/Catalina/localhost/manager.xml] has finished in [485] ms >>> [2020-02-11 13:26:52] [info] Deploying deployment descriptor >>> [/etc/tomcat9/Catalina/localhost/host-manager.xml] >>> [...] >>> [...] >>> [2020-02-11 13:26:58] [info] #033[32m2020-02-11 13:26:58,338 INFO >>> [org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator] >>> >>> - >> [/etc/cas/config/cas.properties]]] under profile(s) [[standalone]]>#033[m >>> [2020-02-11 13:26:58] [info] 2020-02-11 13:26:58,366 main ERROR >>> RollingFileManager (/var/log/cas.log) java.io.FileNotFoundException: >>> /var/log/cas.log (Permission denied) java.io.FileNotFoundException: >>> /var/log/cas.log (Permission denied) >>> [...] >>> [...] >>> [2020-02-11 13:26:58] [info] 2020-02-11 13:26:58,369 main ERROR Could >>> not create plugin of type class >>> org.apache.logging.log4j.core.appender.RollingFileAppender for element >>> RollingFile: java.lang.IllegalStateException: ManagerFactory >>> [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory@107060e7] >>> >>> unable to create manager for [/var/log/cas.log] with data >>> [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$FactoryData@79a5298f[pattern=/var/log/cas-%d{-MM-dd-HH}-%i.log, >>> >>> append=true, bufferedIO=true, bufferSize=8192, >>> policy=CompositeTriggeringPolicy(policies=[OnStartupTriggeringPolicy, >>> SizeBasedTriggeringPolicy(size=10485760), >>> TimeBasedTriggeringPolicy(nextRolloverMillis=0, interval=1, >>> modulate=false)]), strategy=DefaultRolloverStrategy(min=1, max=7, >>> useMax=true), advertiseURI=null, layout=%d %p [%c] - <%m>%n, >>> filePermissions=null, fileOwner=null]] java.lang.IllegalStateException: >>> ManagerFactory >>> [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory@107060e7] >>> >>> unable to create manager for [/var/log/cas.log] with data >>> [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$FactoryData@79a5298f[pattern=/var/log/cas-%d{-MM-dd-HH}-%i.log, >>> >>> append=true, bufferedIO=true, bufferSize=8192, >>> policy=CompositeTriggeringPolicy(policies=[OnStartupTriggeringPolicy, >>> SizeBasedTriggeringPolicy(size=10485760), >>> TimeBasedTriggeringPolicy(nextRolloverMillis=0, interval=1, >>> modulate=false)]), strategy=DefaultRolloverStrategy(min=1, max=7, >>> useMax=true), advertiseURI=null, layout=%d %p [%c] - <%m>%n, >>>
[cas-user] Re: CAS Service Management - Bean property 'mgmt[adminRoles]' is not readable
Hi Danny, I have it defined like this: mgmt.adminRoles[0]= Hope this helps. Regards, Bob On Monday, January 20, 2020 at 10:10:33 AM UTC+1, Danny Zeng wrote: > > this is my env config : > 5.3.14 > 5.3.6 > > i startup cas-server, then startup service-manangement > [org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext] > > - attempt: org.springframework.beans.factory.BeanCreationException: Error > creating bean with name > 'cas-org.apereo.cas.configuration.CasConfigurationProperties': Could not > bind properties to CasConfigurationProperties (prefix=cas, > ignoreInvalidFields=false, ignoreUnknownFields=false, > ignoreNestedProperties=false); nested exception is > org.springframework.beans.NotWritablePropertyException: Invalid property > 'mgmt[adminRoles]' of bean class > [org.apereo.cas.configuration.CasConfigurationProperties]: Cannot access > indexed value in property referenced in indexed property path > 'mgmt[adminRoles]'; nested exception is > org.springframework.beans.NotReadablePropertyException: Invalid property > 'mgmt[adminRoles]' of bean class > [org.apereo.cas.configuration.CasConfigurationProperties]: Bean property > 'mgmt[adminRoles]' is not readable or has an invalid getter method: Does > the return type of the getter match the parameter type of the setter?> > > > what's wrong ? > > Anyone know what the problem is?? > > Or how to find out? > > thanks !!! > -- - 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/a5158b0e-333d-4083-bef3-f580ea2147e9%40apereo.org.
Re: [cas-user] Service Registry - Store in MySQL database
Thanks Misagh and Ray, I cloned the cas-overlay-template in a new location and used the settings Misagh suggested but I still have the same problem that my casdb still has an empty regex_registered_service table. Here's what I'm using: Here's what I'm using: CAS Version: 6.1.0 CAS Branch: 6.1.x CAS Commit Id: c92590730249df0cf26fd1b4bebd8aea8447b256 CAS Build Date/Time: 2019-10-28T02:43:18Z Spring Boot Version: 2.2.0.RELEASE Spring Version: 5.2.0.RELEASE Java Home: C:\Programs\Java\amazon-corretto\jdk11.0.3_7 Java Vendor: Amazon.com Inc. Java Version: 11.0.3 My dependencies in build.gradle: dependencies { // Other CAS dependencies/modules may be listed here... compile "org.apereo.cas:cas-server-support-ldap:${project.'cas.version'}" compile "org.apereo.cas:cas-server-support-jdbc-drivers:${project.'cas.version'}" compile "org.apereo.cas:cas-server-support-jpa-service-registry:${project.'cas.version'}" } My minimum cas.propertie (I omitted the LDAP part since that's working fine): cas.server.name: https://localhost:8443 cas.server.prefix: ${cas.server.name}/cas logging.config: file:/etc/cas/config/log4j2.xml server.ssl.key-store=file:/etc/cas/keystore.jks server.ssl.key-store-password= server.ssl.key-password=xxx cas.serviceRegistry.initFromJson=true cas.serviceRegistry.json.location=file:/etc/cas/config/services cas.serviceRegistry.jpa.user=xx cas.serviceRegistry.jpa.password=xxx cas.serviceRegistry.jpa.driverClass=com.mysql.cj.jdbc.Driver cas.serviceRegistry.jpa.url=jdbc:mysql://localhost:3306/casdb?allowPublicKeyRetrieval=true=UTF-8=FALSE cas.serviceRegistry.jpa.dialect=org.hibernate.dialect.MySQL57InnoDBDialect cas.serviceRegistry.jpa.ddlAuto=update When I run CAS 6.1.0 I see: [org.apereo.cas.services.AbstractServicesManager] - I can then use CAS to login to my application, but it does not insert any Service Registry into the MySQL casdb. Do you see anything wrong in my setup? Thanks, Bob On Wednesday, January 29, 2020 at 11:21:24 AM UTC+1, Misagh Moayyed wrote: > > > Something along the following lines should work: > > cas.serviceRegistry.initFromJson=true > cas.serviceRegistry.json.location=file:/etc/cas/config/services > > - Then, make sure your JSON files are in the above noted directory. > - Then, make sure your overlay contains a reference to the JPA service > registry > > (You do not need to include the JSON service registry, IIRC, in the > overlay) > > Then, on startup, CAS will import your JSON files from that directory over > to the real (JPA) service registry. > > YMMV. > > > On Wednesday, January 29, 2020 at 12:56:11 AM UTC+4, rbon wrote: >> >> Bob, >> >> We are using the 5.1.5 version of cas management. You only need to >> upgrade it if you want newer features, etc. >> I also have grumblings about the 6.x version. I put off upgrading cas >> management until it settles. >> >> Ray >> >> On Tue, 2020-01-28 at 12:34 -0800, Bob wrote: >> >> Hi Ray, >> >> No, I'm currently just using the cas overlay (6.1.x). >> I did try to get cas management working but had some issue with a >> pre-defined service registry in some kind of git repo. >> Whenever I tried to enter a service via cas management, there was no >> option to save it to my database. All it ever did was show this 1 entry >> from a git repo. >> SInce I did get it working (reading my json file and store it in MySQL >> database) without cas management for version 5.3.9, I assumed it would work >> for version 6 as well. >> Do you think cas management is the only way to get it stored in the >> database? I might have another look at it then. >> Thanks, >> >> Bob >> >> >> On Tuesday, January 28, 2020 at 8:31:44 PM UTC+1, rbon wrote: >> >> Bob, >> >> Are you using the cas management server, >> https://github.com/apereo/cas-management-overlay? >> If you are, what do the logs say when you try to save? >> >> Ray >> >> On Tue, 2020-01-28 at 03:50 -0800, Bob wrote: >> >> Hello, >> >> We are upgrading to CAS 6.1.x. >> Most things seem to work fine (LDAP and reading Service Registry from >> json file) but we cannot get it to save the Service Registry in a MySQL >> casdb. >> Is there a way to manually enter a Service Registry into a MySQL database? >> >> Running CAS has created 3 tables in our MySQL database: >> >> regex_registered_service >> regex_registered_service_regex_registered_service_property >> regex_registered_service_registered_service_impl_contact >> >> >> Table regex_registered_serv
Re: [cas-user] Service Registry - Store in MySQL database
Hi Ray, No, I'm currently just using the cas overlay (6.1.x). I did try to get cas management working but had some issue with a pre-defined service registry in some kind of git repo. Whenever I tried to enter a service via cas management, there was no option to save it to my database. All it ever did was show this 1 entry from a git repo. SInce I did get it working (reading my json file and store it in MySQL database) without cas management for version 5.3.9, I assumed it would work for version 6 as well. Do you think cas management is the only way to get it stored in the database? I might have another look at it then. Thanks, Bob On Tuesday, January 28, 2020 at 8:31:44 PM UTC+1, rbon wrote: > > Bob, > > Are you using the cas management server, > https://github.com/apereo/cas-management-overlay? > If you are, what do the logs say when you try to save? > > Ray > > On Tue, 2020-01-28 at 03:50 -0800, Bob wrote: > > Hello, > > We are upgrading to CAS 6.1.x. > Most things seem to work fine (LDAP and reading Service Registry from json > file) but we cannot get it to save the Service Registry in a MySQL casdb. > Is there a way to manually enter a Service Registry into a MySQL database? > > Running CAS has created 3 tables in our MySQL database: > > regex_registered_service > regex_registered_service_regex_registered_service_property > regex_registered_service_registered_service_impl_contact > > > Table regex_registered_service has the following columns: > > +--+ > | COLUMN_NAME | > +--+ > | access_strategy | > | attribute_release| > | description | > | environments | > | evaluation_order | > | expiration_policy| > | expression_type | > | id | > | information_Url | > | logo | > | logout_type | > | logout_url | > | mfa_policy | > | name | > | privacy_Url | > | proxy_policy | > | proxy_ticket_expiration_policy | > | public_key | > | required_handlers| > | response_Type| > | service_Id | > | service_ticket_expiration_policy | > | sso_participation_policy | > | theme| > | username_attr| > +--+ > 25 rows in set (0.00 sec) > > How would I get the following json into this table? > > { > "@class" : "org.apereo.cas.services.RegexRegisteredService", > "serviceId" : "https://localhost:9000/dashboard;, > "name" : "My App", > "id" : 10001000, > "description" : "My Dashboard App", > "attributeReleasePolicy" : { > "@class" : > "org.apereo.cas.services.ReturnMappedAttributeReleasePolicy", > "allowedAttributes" : { > "@class" : "java.util.TreeMap", > "memberOf" : "authorities" > } > }, > "evaluationOrder" : 100, > "accessStrategy" : { > "@class" : > "org.apereo.cas.services.DefaultRegisteredServiceAccessStrategy", > "enabled" : true, > "ssoEnabled" : true > } > } > > Thanks in advance! > > Bob > > -- > > 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. > On Tuesday, January 28, 2020 at 8:31:44 PM UTC+1, rbon wrote: > > Bob, > > Are you using the cas management server, > https://github.com/apereo/cas-management-overlay? > If you are, what do the logs say when you try to save? > > Ray > > On Tue, 2020-01-28 at 03:50 -0800, Bob wrote: > > Hello, > > We are upgrading to CAS 6.1.x. > Most things seem to work fine (LDAP and reading Service Registry from json > file) but we cannot get it to save the Service Registry in a MySQL casdb. > Is there a way to manually enter a Service Registry into a MySQL database? > > Running CAS has created 3 tables in our MySQL database: > > regex_registered_service > regex_registered_service_regex_registered_service_property > regex_regis
[cas-user] Service Registry - Store in MySQL database
Hello, We are upgrading to CAS 6.1.x. Most things seem to work fine (LDAP and reading Service Registry from json file) but we cannot get it to save the Service Registry in a MySQL casdb. Is there a way to manually enter a Service Registry into a MySQL database? Running CAS has created 3 tables in our MySQL database: regex_registered_service regex_registered_service_regex_registered_service_property regex_registered_service_registered_service_impl_contact Table regex_registered_service has the following columns: +--+ | COLUMN_NAME | +--+ | access_strategy | | attribute_release| | description | | environments | | evaluation_order | | expiration_policy| | expression_type | | id | | information_Url | | logo | | logout_type | | logout_url | | mfa_policy | | name | | privacy_Url | | proxy_policy | | proxy_ticket_expiration_policy | | public_key | | required_handlers| | response_Type| | service_Id | | service_ticket_expiration_policy | | sso_participation_policy | | theme| | username_attr| +--+ 25 rows in set (0.00 sec) How would I get the following json into this table? { "@class" : "org.apereo.cas.services.RegexRegisteredService", "serviceId" : "https://localhost:9000/dashboard;, "name" : "My App", "id" : 10001000, "description" : "My Dashboard App", "attributeReleasePolicy" : { "@class" : "org.apereo.cas.services.ReturnMappedAttributeReleasePolicy", "allowedAttributes" : { "@class" : "java.util.TreeMap", "memberOf" : "authorities" } }, "evaluationOrder" : 100, "accessStrategy" : { "@class" : "org.apereo.cas.services.DefaultRegisteredServiceAccessStrategy", "enabled" : true, "ssoEnabled" : true } } Thanks in advance! Bob -- - 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/33bd23b5-1921-4c6a-bd49-3f6e3554af4d%40apereo.org.
[cas-user] JPA Service Registry (CAS 6.1.0) not Auto Initialized (MySQL database)
Hello all, We have CAS 5.3.9 up and running on Production and it's working fine (with Service Registries stored in a MySQL database). Currently I'm trying out a clean installation of the cas-overlay-template (branch 6.1) and it's working ok with our existing JSON definitions for the Services but I cannot get the Auto Initialization working for the JPA Service Registry. It creates 3 new tables in my casdb database when I run CAS 6.1.0. but they're all empty: regex_registered_service regex_registered_service_regex_registered_service_property regex_registered_service_registered_service_impl_contact By the way, CAS 5.3.9 created the table name like: "regexregisteredservice" (with 44 columns). In CAS 6.1.0 I only have 25 columns in "regex_registered_service" Here's what I'm using: CAS Version: 6.1.0 CAS Branch: 6.1.x CAS Commit Id: c92590730249df0cf26fd1b4bebd8aea8447b256 CAS Build Date/Time: 2019-10-28T02:43:18Z Spring Boot Version: 2.2.0.RELEASE Spring Version: 5.2.0.RELEASE Java Home: C:\Programs\Java\amazon-corretto\jdk11.0.3_7 Java Vendor: Amazon.com Inc. Java Version: 11.0.3 My dependencies in build.gradle: dependencies { // Other CAS dependencies/modules may be listed here... compile "org.apereo.cas:cas-server-support-ldap:${project.'cas.version'}" compile "org.apereo.cas:cas-server-support-jdbc-drivers:${project.'cas.version'}" compile "org.apereo.cas:cas-server-support-jpa-service-registry:${project.'cas.version'}" } My minimum cas.propertie (I omitted the LDAP part since that's working fine): cas.server.name: https://localhost:8443 cas.server.prefix: ${cas.server.name}/cas logging.config: file:/etc/cas/config/log4j2.xml server.ssl.key-store=file:/etc/cas/keystore.jks server.ssl.key-store-password= server.ssl.key-password=xxx cas.serviceRegistry.initFromJson=true cas.serviceRegistry.json.location=file:/etc/cas/services cas.serviceRegistry.jpa.user=xx cas.serviceRegistry.jpa.password=xxx cas.serviceRegistry.jpa.driverClass=com.mysql.cj.jdbc.Driver cas.serviceRegistry.jpa.url=jdbc:mysql://localhost:3306/casdb?allowPublicKeyRetrieval=true=UTF-8=FALSE cas.serviceRegistry.jpa.dialect=org.hibernate.dialect.MySQL57InnoDBDialect cas.serviceRegistry.jpa.ddlAuto=update When I run CAS 6.1.0 I see: [org.apereo.cas.services.AbstractServicesManager] - I can then use CAS to login to my application, but it does not insert any Service Registry into the MySQL casdb. Initially I had a similar issue with CAS 5.3.9 but after fiddling with some settings (enable/disable dependencies and initFromJson values in cas.properties) I somehow got that working. I'm using similar settings (although using gradle instead of maven now) in CAS 6.1.0 but I can't seem to get the Service Registries into the casdb. Does anybody have an idea what I'm missing (or maybe it's a known issue/bug))? Thanks in advance (I searched this forum but could not find a similar issue). Bob -- - 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/9176b5d1-4815-454e-8cb5-f8db2c4be28a%40apereo.org.
[cas-user] Re: Control Attribute Release
On Monday, January 7, 2019 at 8:21:46 AM UTC-6, Bob Dill wrote: > > Hi, > > I've read through the docs on Attribute Resolution, but there's no mention > of what files to edit and no examples given. We are using LDAP > authentication, and we would like to release people first name and last > name to an SP. How do I go about defining attributes to be released coming > from a certain IP? > > Thank you, > ~ Bob > Okay, I've been reading further, and found that I'll need to create a new server JSON file in the services directory. I'll keep working on it. I'll let you guys know if I'm successful. Thanks. ~ Bob -- - 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/80b1f629-8e8e-4054-8fcd-04ada9761d6f%40apereo.org.
[cas-user] Control Attribute Release
Hi, I've read through the docs on Attribute Resolution, but there's no mention of what files to edit and no examples given. We are using LDAP authentication, and we would like to release people first name and last name to an SP. How do I go about defining attributes to be released coming from a certain IP? Thank you, ~ Bob -- - 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/78777cfb-4a93-438c-b4b2-9112202a203c%40apereo.org.
[cas-user] Re: No Signing or Encryption Key
Never mind. I guessed around and found that I had to set these. cas.webflow.signing.key= cas.webflow.signing.keySize=512 cas.webflow.encryption.keySize=16 cas.webflow.encryption.key= cas.webflow.alg=AES ~ Bob On Thursday, August 17, 2017 at 4:16:26 PM UTC-5, Bob Dill wrote: > > Hi All, > > I've been working for the last couple of hours trying to resolve a problem > I'm having with SSO. Inside the log, I'm getting the followng messages. > > 2017-08-17 16:06:03,688 WARN > [org.apereo.cas.config.CasCoreTicketsConfiguration] - used as the persistence storage for retrieving and managing tickets. > Tickets that are issued during runtime will be LOST upon container > restarts. This MAY impact SSO functionality.> > 2017-08-17 16:06:10,889 WARN > [org.apereo.cas.config.JsonServiceRegistryConfiguration] - service definitions [class path resource [services]] is on the classpath. > It is recommended that the location of service definitions be externalized > to allow for easier modifications and better sharing of the configuration.> > 2017-08-17 16:06:16,959 WARN > [org.apereo.cas.config.CasCoreServicesConfiguration] - used as the persistence storage for retrieving and persisting service > definitions. Changes that are made to service definitions during runtime > WILL be LOST upon container restarts.> > 2017-08-17 16:06:17,627 WARN > [org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - signing is not defined. CAS will attempt to auto-generate the signing key> > 2017-08-17 16:06:17,628 WARN > [org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - key > [3pIKmpeB_Jp8TlJjPYpztmokMosTY2KCJHmsBNUiyHTqOZptJOm5frEoObc3oYsRLdzTMAQw9Az5u9HWIsLh7A] > > of size [512]. The generated key MUST be added to CAS settings.> > 2017-08-17 16:06:17,629 WARN > [org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - is defined. CAS will attempt to auto-generate keys> > 2017-08-17 16:06:17,629 WARN > [org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - encryption key [dowykNbnHjRYVswF] of size [16]. The generated key MUST be > added to CAS settings.> > 2017-08-17 16:06:21,447 WARN > [org.apache.catalina.util.SessionIdGeneratorBase] - SecureRandom instance for session ID generation using [SHA1PRNG] took > [3,730] milliseconds.> > > At first I was also getting a complaint about undefined keys for > Ticket-granting tickets, but I resolved this by setting the properties > cas.tgc.signingKey= > cas.tgc.encryptionKey= > > I know that I can get rid of this complaint if I only knew what property > to set. I tried setting. > cas.ticket.security.encryptionKey= > cas.ticket.security.signingKey= > > Setting those properties does not seem to work, and the official > documentation doesn't give the property. It suggest that I look at all the > properties, and there are tens of keys to try. Yay! > > Anyone know the property? This installation is brand new with practically > no customizations at this point. All I have done is added support for LDAP, > and JSON Service Registry to mypom.xml file. > -- - CAS gitter chatroom: https://gitter.im/apereo/cas - CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html - CAS documentation website: https://apereo.github.io/cas - CAS project website: https://github.com/apereo/cas --- 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/8f396b00-7ec3-4db9-88f2-d8b939f285fb%40apereo.org.
[cas-user] No Signing or Encryption Key
Hi All, I've been working for the last couple of hours trying to resolve a problem I'm having with SSO. Inside the log, I'm getting the followng messages. 2017-08-17 16:06:03,688 WARN [org.apereo.cas.config.CasCoreTicketsConfiguration] - 2017-08-17 16:06:10,889 WARN [org.apereo.cas.config.JsonServiceRegistryConfiguration] - 2017-08-17 16:06:16,959 WARN [org.apereo.cas.config.CasCoreServicesConfiguration] - 2017-08-17 16:06:17,627 WARN [org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - 2017-08-17 16:06:17,628 WARN [org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - 2017-08-17 16:06:17,629 WARN [org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - 2017-08-17 16:06:17,629 WARN [org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - 2017-08-17 16:06:21,447 WARN [org.apache.catalina.util.SessionIdGeneratorBase] - At first I was also getting a complaint about undefined keys for Ticket-granting tickets, but I resolved this by setting the properties cas.tgc.signingKey= cas.tgc.encryptionKey= I know that I can get rid of this complaint if I only knew what property to set. I tried setting. cas.ticket.security.encryptionKey= cas.ticket.security.signingKey= Setting those properties does not seem to work, and the official documentation doesn't give the property. It suggest that I look at all the properties, and there are tens of keys to try. Yay! Anyone know the property? This installation is brand new with practically no customizations at this point. All I have done is added support for LDAP, and JSON Service Registry to mypom.xml file. -- - CAS gitter chatroom: https://gitter.im/apereo/cas - CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html - CAS documentation website: https://apereo.github.io/cas - CAS project website: https://github.com/apereo/cas --- 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/e474645f-75fd-4786-a43c-3cafaf4d5a09%40apereo.org.
[cas-user] Re: Tomcat and CAS Newbie Need Help with Google SSO Overlay
Hi All, I wanted to say thank you for your help (Uxio, Ng Sek Long). I did some reading and decided to start from scratch with version 5.1.2. I downloaded the cas overlay project from github, ran the build script and deployed the resulting cas.war file. I now have a running version of the cas application. Yay! Now, I'm working on configuring it to suite my needs. I will open a new thread regarding that. Thank you for the suggestions. ~ Bob On Friday, August 11, 2017 at 12:15:42 PM UTC-5, Bob Dill wrote: > > Hi All, > > I'm a newbie when it comes to CAS and Tomcat Web Servers. I need to set up > SSO with Google using CAS. I have read the documentation at > https://apereo.github.io/cas/4.2.x/integration/Google-Apps-Integration.html > although I am using version 3.5.2. I'm stuck on the first step of adding a > dependency for a CAS overlay. Do I need to download the overlay? Do I need > to rebuild the project? Is there a nice step-by-step guide that will teach > me how to perform these basic steps? I've been searching for hours, and I'm > not making any progress. > > Thank in advance, > ~ Bob > -- - CAS gitter chatroom: https://gitter.im/apereo/cas - CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html - CAS documentation website: https://apereo.github.io/cas - CAS project website: https://github.com/apereo/cas --- 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/15f0c419-7db0-4815-8390-289edca39502%40apereo.org.
[cas-user] Re: CAS 5.1.2 step by step documentation
Hi Satheesh, I can send you my notes on how I installed CAS and got it working. I'm still struggling with the configuration now, but I thought that since we are both newbies we could both benefit from some collaboration. Let me know if you are interested. In the meantime, here's an easy way to get started. 1. Download the master WAR overlay project from: https://github.com/apereo/cas-overlay-template/archive/master.zip 2. Unzip it, and run build.sh (in Linux) or build.cmd (in Windows). If you lack elevated privileges, the build will succeed, but you will notice some errors indicating that some files could not be copied. On Linux (I don't know about windows), as root, go to /etc and run 'mkdir -P cas/config'. This will make the cas config directory. Then, from the directory where you ran the build script copy, there will be an etc/cas/config directory. Copy the files in there (as root) to the directory you just created with mkdir. You no longer need to worry about the errors at the end of the build script. 3. Finally, deploy the cas.war file. The easiest way to do that is if you already have a tomcat installation set up for SSL (let me know if you need help with SSL too), simply copy the cas.war file to the webapps directory in your tomcat configuration. This will automatically deploy your cas application. Now, you can visit https://:/cas, and you will see the page. This will get you to the point I'm at right now. I hope this helps. ~ Bob On Monday, August 14, 2017 at 4:26:45 AM UTC-5, satheesh k wrote: > > HI All, > > We are implementing CAS 5.1.2 in our projct. I need to set up SSO with our > application using CAS. I have read the documentation at > https://apereo.github.io/cas/5.1.x/planning/Installation-Requirements.html > .We stuck on the implementation of CAS 5.1.2 in our project. Is there a > step-by-step guide that will teach me how to perform these basic steps? > > Thanks, > Satheesh. K > -- - CAS gitter chatroom: https://gitter.im/apereo/cas - CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html - CAS documentation website: https://apereo.github.io/cas - CAS project website: https://github.com/apereo/cas --- 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/ad983f9f-49e6-413b-8aff-0d5b450fb05b%40apereo.org.
Re: [cas-user] CAS 5.1.2 step by step documentation
Uxio, Thank you for the suggested links. I will read through them shortly. We actually have a previous version of CAS installed. Unfortunately, the person that installed it left, and I cannot continue where he left off, so I am reinstalling and configuring everything from scratch. I suggestions are greatly appreciated, and I will get back with you shortly. ~ Bob From: cas-user@apereo.org <cas-user@apereo.org> on behalf of Uxío Prego <upr...@madiva.com> Sent: Monday, August 14, 2017 8:23:32 AM To: CAS Community Subject: Re: [cas-user] CAS 5.1.2 step by step documentation Make sure you already read and understood these articles from the maintainer. https://apereo.github.io/2016/10/04/casbootoverlay/ https://apereo.github.io/2017/02/21/cas-autocfg-strategy/ https://apereo.github.io/2017/03/28/cas5-gettingstarted-overlay/ Uxío Prego Madiva Soluciones CL / SERRANO GALVACHE 56 BLOQUE ABEDUL PLANTA 4 28033 MADRID +34 917 56 84 94 www.madiva.com<http://www.madiva.com> www.bbva.com<http://www.bbva.com> The activity of email inboxes can be systematically tracked by colleagues, business partners and third parties. Turn off automatic loading of images to hamper it. 2017-08-14 11:26 GMT+02:00 satheesh k <uksathe...@gmail.com<mailto:uksathe...@gmail.com>>: HI All, We are implementing CAS 5.1.2 in our projct. I need to set up SSO with our application using CAS. I have read the documentation at https://apereo.github.io/cas/5.1.x/planning/Installation-Requirements.html .We stuck on the implementation of CAS 5.1.2 in our project. Is there a step-by-step guide that will teach me how to perform these basic steps? Thanks, Satheesh. K -- - CAS gitter chatroom: https://gitter.im/apereo/cas - CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html - CAS documentation website: https://apereo.github.io/cas - CAS project website: https://github.com/apereo/cas --- 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<mailto:cas-user+unsubscr...@apereo.org>. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/41a2f91f-fcbc-4b4d-8228-1d47ab672e68%40apereo.org<https://groups.google.com/a/apereo.org/d/msgid/cas-user/41a2f91f-fcbc-4b4d-8228-1d47ab672e68%40apereo.org?utm_medium=email_source=footer>. -- - CAS gitter chatroom: https://gitter.im/apereo/cas - CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html - CAS documentation website: https://apereo.github.io/cas - CAS project website: https://github.com/apereo/cas --- 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<mailto:cas-user+unsubscr...@apereo.org>. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CANidDKZFr%3DiazhMycknpFsT2GSg059s-d%3DjfUhgzB78qWOc3JA%40mail.gmail.com<https://groups.google.com/a/apereo.org/d/msgid/cas-user/CANidDKZFr%3DiazhMycknpFsT2GSg059s-d%3DjfUhgzB78qWOc3JA%40mail.gmail.com?utm_medium=email_source=footer>. -- - CAS gitter chatroom: https://gitter.im/apereo/cas - CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html - CAS documentation website: https://apereo.github.io/cas - CAS project website: https://github.com/apereo/cas --- 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/666c2ad09c3849019c3dee8acb84ef7f%40cameron.edu.
[cas-user] Tomcat and CAS Newbie Need Help with Google SSO Overlay
Hi All, I'm a newbie when it comes to CAS and Tomcat Web Servers. I need to set up SSO with Google using CAS. I have read the documentation at https://apereo.github.io/cas/4.2.x/integration/Google-Apps-Integration.html although I am using version 3.5.2. I'm stuck on the first step of adding a dependency for a CAS overlay. Do I need to download the overlay? Do I need to rebuild the project? Is there a nice step-by-step guide that will teach me how to perform these basic steps? I've been searching for hours, and I'm not making any progress. Thank in advance, ~ Bob -- - CAS gitter chatroom: https://gitter.im/apereo/cas - CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html - CAS documentation website: https://apereo.github.io/cas - CAS project website: https://github.com/apereo/cas --- 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/1eacce5a-71b9-487c-afc9-e6c91d6c3144%40apereo.org.