Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docpublic:systemes:ssocas:cas71install [2025/02/17 13:28]
adminjp [version]
docpublic:systemes:ssocas:cas71install [2025/02/17 17:21] (current)
adminjp [personalisation des views]
Line 479: Line 479:
   * https://github.com/apereo/cas/releases   * https://github.com/apereo/cas/releases
  
-on choisis ici la version 7.0.4 +on choisi ici la version 7.1.4 
  
 <code> <code>
Line 488: Line 488:
 </code> </code>
  
-et downgrade de springBootVersion du fait du passage de cas version version=7.1.0-SNAPSHOT vers 7.0.4 ci-dessus , +et downgrade de springBootVersion du fait du passage de cas version version=7.2 RC2 vers 7.1.4 ci-dessus , 
  
 sinon erreur de Class Not Found : "org.springframework.boot.actuate.autoconfigure.sbom.SbomEndpointAutoConfiguration caused by ClassNotFoundException" sinon erreur de Class Not Found : "org.springframework.boot.actuate.autoconfigure.sbom.SbomEndpointAutoConfiguration caused by ClassNotFoundException"
Line 532: Line 532:
 [root@cas7d cas-overlay-template]# ls /etc/cas/config/ [root@cas7d cas-overlay-template]# ls /etc/cas/config/
 cas.properties  log4j2.xml cas.properties  log4j2.xml
 +</code>
 +
 +==== creation services ====
 +il faut creer a minima le service localhost, autrement le serveur ne demarre pas avec ce type d'erreur
 +
 +<code>
 +2025-02-17 13:46:31,318 INFO [org.apereo.cas.services.resource.AbstractResourceBasedServiceRegistry] - <Watching service registry directory at [/etc/cas/services]>
 +2025-02-17 13:46:31,320 WARN [org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext] - <Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server>
 +17-Feb-2025 13:46:31.402 SEVERE [main] org.apache.catalina.startup.HostConfig.deployWAR Error deploying web application archive [/opt/tomcat/webapps/cas.war]
 + java.lang.IllegalStateException: Error starting child
 +</code>
 +
 +on créé alors le service pour localhost et nos domains
 +
 +
 +<code>
 +[root@cas7 services]# ls -ltr
 +total 12
 +-rw-r--r-- 1 root root 554 Feb 17 14:01 disi_star_imtbs-1718526946.json
 +-rw-r--r-- 1 root root 536 Feb 17 14:01 disi-localhost-1738144793.json
 +-rw-r--r-- 1 root root 551 Feb 17 14:04 disi_star_intevry-1739800806.json
 +
 +[root@cas7 services]# cat disi-localhost-1738144793.json
 +{
 +"@class" : "org.apereo.cas.services.CasRegisteredService",
 +"serviceId" : "https://localhost/.*",
 +"name" : "disi_localhost",
 +"id" : 1738144793,
 +"evaluationOrder" : 40715,
 +"matchingStrategy": {
 +   "@class": "org.apereo.cas.services.FullRegexRegisteredServiceMatchingStrategy"
 +}
 +"proxyPolicy" : {
 +    "@class" : "org.apereo.cas.services.RegexMatchingRegisteredServiceProxyPolicy",
 +    "pattern" : "https:\/\/localhost\/.*"
 +  }
 +  "attributeReleasePolicy" : {
 +   "@class" : "org.apereo.cas.services.ReturnAllAttributeReleasePolicy"
 + }
 +
 +}
 </code> </code>
  
Line 655: Line 696:
  
 <code> <code>
-[root@cas7 cas-overlay-template]#  ./gradlew clean copyCasConfiguration build --no-daemon +[root@cas7 cas-overlay-template]# ./gradlew clean copyCasConfiguration build --no-daemon 
-To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.8/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.+To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.12.1/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
 Daemon will be stopped at the end of the build  Daemon will be stopped at the end of the build 
 Configuration on demand is an incubating feature. Configuration on demand is an incubating feature.
  
-BUILD SUCCESSFUL in 36s +> Configure project : 
-9 actionable tasks8 executed, up-to-date+Using Amazon Corretto as the JVM vendor for the Java toolchain 
 +Building CAS version 7.1.4 with application server -tomcat
  
-[root@cas7 cas-overlay-template]#  ls -l build/libs/cas.war +[IncubatingProblems report is available at: file:///opt/cas-src/cas-overlay-template/build/reports/problems/problems-report.html
--rwxr--r-- 1 root root 131410153 Jun  2 14:56 build/libs/cas.war+
  
 +Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
 +
 +You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
 +
 +For more on this, please refer to https://docs.gradle.org/8.12.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
 +
 +BUILD SUCCESSFUL in 29s
 +9 actionable tasks: 9 executed
 </code> </code>
  
 +le resulat est dans cette arborescence
 +
 +<code>
 +[root@cas7 cas-overlay-template]# ls -ltr /opt/cas-src/cas-overlay-template/build/libs/cas.war 
 +-rwxr--r-- 1 root root 122460645 Feb 17 13:37 /opt/cas-src/cas-overlay-template/build/libs/cas.war
 +</code>
  
 ==== Deployer dans tomcat ==== ==== Deployer dans tomcat ====
Line 678: Line 733:
 [root@cas7 cas-overlay-template]# systemctl start tomcat.service  [root@cas7 cas-overlay-template]# systemctl start tomcat.service 
  
-[root@cas7 cas-overlay-template]# ls -ltr /opt/tomcat/webapps/ +[root@cas7 services]#  ls -ltr /opt/tomcat/webapps/ 
-drwxr-x---  3 tomcat tomcat      4096 Apr 21 21:40 ROOT +total 119616 
-drwxr-x--- 16 tomcat tomcat      4096 Apr 21 21:40 docs +drwxr-x---  3 tomcat tomcat      4096 Feb 15 21:54 ROOT 
-drwxr-x---  7 tomcat tomcat      4096 Apr 21 21:40 examples +drwxr-x--- 16 tomcat tomcat      4096 Feb 15 21:54 docs 
-drwxr-x---  6 tomcat tomcat      4096 Apr 21 21:40 host-manager +drwxr-x---  7 tomcat tomcat      4096 Feb 15 21:54 examples 
-drwxr-x---  6 tomcat tomcat      4096 Apr 21 21:40 manager +drwxr-x---  6 tomcat tomcat      4096 Feb 15 21:54 host-manager 
-drwxr-x---  7 tomcat tomcat      4096 May  4 21:59 idp +drwxr-x---  6 tomcat tomcat      4096 Feb 15 21:54 manager 
--rwxr--r--  1 root   root   131410153 Jun  2 16:19 cas.war +-rwxr--r--  1 root   root   122460645 Feb 17 13:56 cas.war 
-drwxr-x---  5 tomcat tomcat      4096 Jun  2 16:19 cas +drwxr-x---  5 tomcat tomcat      4096 Feb 17 13:57 cas
- +
  
 </code> </code>
Line 697: Line 750:
  
 <code> <code>
-06-Jun-2024 19:06:21.431 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/opt/tomcat/webapps/cas.war] +17-Feb-2025 14:05:39.342 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/opt/tomcat/webapps/cas.war] 
-06-Jun-2024 19:06:29.068 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars 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. +17-Feb-2025 14:05:43.267 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars 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. 
-2024-06-06 19:06:30,517 INFO [org.apereo.cas.configuration.CasConfigurationPropertiesValidator] - <Validating CAS property sources and configuration for active profiles [[standalone]]. Please wait...> +2025-02-17 14:05:44,463 INFO [org.apereo.cas.configuration.CasConfigurationPropertiesValidator] - <Validating CAS property sources and configuration for active profiles [[standalone]]. Please wait...> 
-2024-06-06 19:06:30,529 INFO [org.apereo.cas.configuration.CasConfigurationPropertiesValidator] - <Validated CAS property sources and configuration successfully.+2025-02-17 14:05:44,472 INFO [org.apereo.cas.configuration.CasConfigurationPropertiesValidator] - <Validated CAS property sources and configuration successfully.>
- +
- +
-2024-06-06 19:06:32,509 DEBUG [org.springframework.boot.devtools.restart.Restarter] - <Creating new Restarter for thread Thread[#1,main,5,main]>+
  
-  ____  ____    ___  ____     ___   ___          __   ____  _____+    ____  ____    ___  ____     ___   ___          __   ____  _____
    /    T|    \  /  _]|    \   /  _] /          /  ] /    T/ ___/    /    T|    \  /  _]|    \   /  _] /          /  ] /    T/ ___/
   Y  o  ||  o  )/  [_ |  D  ) /  [_ Y          /  / Y  o  (   \_    Y  o  ||  o  )/  [_ |  D  ) /  [_ Y          /  / Y  o  (   \_ 
Line 713: Line 763:
   l__j__jl__j  l_____jl__j\_jl_____j \___/      \____jl__j__j \___j   l__j__jl__j  l_____jl__j\_jl_____j \___/      \____jl__j__j \___j
  
-CAS Version: 7.0.4 +CAS Version: 7.1.4 
-CAS Branch: 7.0.x +CAS Branch: 7.1.x 
-CAS Commit Id: d41ac9d5e157605fc43d97a77582c2062e864874 +CAS Commit Id: 59cc9c05b93de39caf993c22288742a75e381bb2 
-CAS Build Date/Time: 2024-04-26T07:43:16.528866Z +CAS Build Date/Time: 2025-01-24T08:27:25.677911Z 
-Spring Boot Version: 3.2.1 +Spring Boot Version: 3.3.3 
-Spring Version: 6.1.2 +Spring Version: 6.1.12 
-Java Home: /usr/lib/jvm/java-21-openjdk-21.0.3.0.9-1.el9.alma.1.x86_64+Java Home: /usr/lib/jvm/java-21-openjdk-21.0.6.0.7-1.el9.alma.1.x86_64
 Java Vendor: Red Hat, Inc. Java Vendor: Red Hat, Inc.
-Java Version: 21.0.3+Java Version: 21.0.6
 Servlet Version: 6.0 Servlet Version: 6.0
-JVM Free Memory: 301 MB+JVM Free Memory: 445 MB
 JVM Maximum Memory: 1 GB JVM Maximum Memory: 1 GB
-JVM Total Memory: 740 MB+JVM Total Memory: 823 MB
 OS Architecture: amd64 OS Architecture: amd64
 OS Name: Linux OS Name: Linux
-OS Version: 5.14.0 +OS Version: 6.8.12-5-pve 
-OS Date/Time: 2024-06-06T19:06:32.626041896+OS Date/Time: 2025-02-17T14:05:45.941778610 
 +OS Timezone: SystemClock[GMT]
 OS Temp Directory: /opt/tomcat/temp OS Temp Directory: /opt/tomcat/temp
------------------------------------------------------------- 
-Apache Tomcat Version: Apache Tomcat/10.1.20 
------------------------------------------------------------- 
  
-2024-06-06 19:06:32,669 INFO [org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator] - <Configuration files found at [/etc/cas/config] are [[file [/etc/cas/config/cas.properties]]] under profile(s) [[standalone]]> 
-2024-06-06 19:06:32,773 INFO [org.apereo.cas.configuration.CasConfigurationPropertiesValidator] - <Validating CAS property sources and configuration for active profiles [[standalone]]. Please wait...> 
-2024-06-06 19:06:32,833 INFO [org.apereo.cas.configuration.CasConfigurationPropertiesValidator] - <Validated CAS property sources and configuration successfully.> 
-2024-06-06 19:06:32,835 INFO [org.apereo.cas.web.CasWebApplicationServletInitializer] - <The following 1 profile is active: "standalone"> 
- 
- 
- 
- 
-2024-06-06 19:06:37,014 INFO [org.apereo.cas.services.resource.AbstractResourceBasedServiceRegistry] - <Watching service registry directory at [/etc/cas/services]> 
-2024-06-06 19:06:37,019 INFO [org.apereo.cas.util.io.PathWatcherService] - <Watching directory path at [/etc/cas/services]> 
-2024-06-06 19:06:38,184 INFO [org.apereo.cas.util.CoreTicketUtils] - <Ticket registry encryption/signing is turned off. This MAY NOT be safe in a clustered production environment. Consider using other choices to handle encryption, signing and verification of ticket registry tickets, and verify the chosen ticket registry does support this behavior.> 
-2024-06-06 19:06:38,241 INFO [org.apereo.cas.config.CasCoreTicketsConfiguration] - <Runtime memory is used as the persistence storage for retrieving and managing tickets. Tickets that are issued during runtime will be LOST when the web server is restarted. This MAY impact SSO functionality.> 
-2024-06-06 19:06:39,324 INFO [org.apereo.cas.config.LdapAuthenticationConfiguration] - <Registering LDAP authentication for [LdapAuthenticationHandler]> 
-2024-06-06 19:06:39,585 WARN [org.apereo.cas.util.cipher.BaseStringCipherExecutor] - <Secret key for encryption is not defined for [Ticket-granting Cookie]; CAS will attempt to auto-generate the encryption key> 
-2024-06-06 19:06:39,594 WARN [org.apereo.cas.util.cipher.BaseStringCipherExecutor] - <Generated encryption key [dhlqwvkSDUy92C0JQLOQojfK0iHxc_gw2M2rnFIUi7o] of size [256] for [Ticket-granting Cookie]. The generated key MUST be added to CAS settings: 
- 
-2024-06-06 19:06:43,801 INFO [org.apereo.cas.web.CasWebApplicationServletInitializer] - <Started CasWebApplicationServletInitializer in 13.811 seconds (process running for 31.402)> 
-2024-06-06 19:06:43,839 INFO [org.apereo.cas.services.mgmt.AbstractServicesManager] - <Loaded [0] service(s) from [JsonServiceRegistry].> 
-2024-06-06 19:06:43,846 INFO [org.apereo.cas.web.CasWebApplicationReady] - <> 
-2024-06-06 19:06:43,846 INFO [org.apereo.cas.web.CasWebApplicationReady] - < 
  
 +2025-02-17 14:05:45,972 INFO [org.apereo.cas.configuration.StandaloneConfigurationFilePropertiesSourceLocator] - <No standalone configuration properties are available>
 +2025-02-17 14:05:45,979 INFO [org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator] - <Configuration files found at [/etc/cas/config] are [[file [/etc/cas/config/cas.properties]]] under profile(s) [[standalone]]>
 +2025-02-17 14:05:46,040 INFO [org.apereo.cas.configuration.CasConfigurationPropertiesValidator] - <Validating CAS property sources and configuration for active profiles [[standalone]]. Please wait...>
 +2025-02-17 14:05:46,094 INFO [org.apereo.cas.configuration.CasConfigurationPropertiesValidator] - <Validated CAS property sources and configuration successfully.>
 +2025-02-17 14:05:46,096 INFO [org.apereo.cas.web.CasWebApplicationServletInitializer] - <The following 1 profile is active: "standalone">
  
 + 
  ____     ___   ____  ___    __ __   ____     ___   ____  ___    __ __ 
 |    \   /  _] /    T|    |  T  T |    \   /  _] /    T|    |  T  T
Line 765: Line 799:
 l__j\_jl_____jl__j__jl_____jl____/  l__j\_jl_____jl__j__jl_____jl____/ 
                                                                        
-CAS is now running at https://cas7d.imtbs-tsp.eu:443/cas+CAS is now running at https://cas7dev.imtbs.fr:443/cas
 > >
-2024-06-06 19:06:43,846 INFO [org.apereo.cas.web.CasWebApplicationReady] - <> +2025-02-17 14:05:54,560 INFO [org.apereo.cas.web.CasWebApplicationReady] - <> 
-2024-06-06 19:06:43,846 INFO [org.apereo.cas.web.CasWebApplicationReady] - <Ready to process requests @ [2024-06-06T17:06:43.822Z]> +2025-02-17 14:05:54,561 INFO [org.apereo.cas.web.CasWebApplicationReady] - <Ready to process requests @ [2025-02-17T14:05:54.531Z]> 
-2024-06-06 19:06:43,846 INFO [org.apereo.cas.configuration.CasConfigurationPropertiesValidator] - <Validating CAS property sources and configuration for active profiles [[standalone]]. Please wait...> +2025-02-17 14:05:54,561 INFO [org.apereo.cas.configuration.CasConfigurationPropertiesValidator] - <Validating CAS property sources and configuration for active profiles [[standalone]]. Please wait...> 
-06-Jun-2024 19:06:43.860 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/opt/tomcat/webapps/cas.war] has finished in [22,430] ms +2025-02-17 14:05:54,773 INFO [org.apereo.cas.services.mgmt.AbstractServicesManager] - <Loaded [3] service(s) from [JsonServiceRegistry].> 
 +17-Feb-2025 14:05:54.789 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/opt/tomcat/webapps/cas.war] has finished in [15,446] ms
  
 </code> </code>
Line 1006: Line 1040:
 ===== personalisation des views ===== ===== personalisation des views =====
  
 +  * https://apereo.github.io/cas/7.1.x/ux/User-Interface-Customization.html
   * https://fawnoos.com/2020/05/17/cas62x-reloadable-html-views/   * https://fawnoos.com/2020/05/17/cas62x-reloadable-html-views/
   * https://fawnoos.com/2021/02/16/cas63-ui-themes/   * https://fawnoos.com/2021/02/16/cas63-ui-themes/
-  * https://apereo.github.io/cas/7.0.x/ux/User-Interface-Customization.html+
  
  
Line 1205: Line 1240:
 [root@cas7 cas-overlay-template]# ls -l /opt/cas-src/cas-overlay-template/src/main/resources/templates/login/ [root@cas7 cas-overlay-template]# ls -l /opt/cas-src/cas-overlay-template/src/main/resources/templates/login/
 -rw-r--r-- 1 root root 1955 Jun  6 19:34 casLoginView.html -rw-r--r-- 1 root root 1955 Jun  6 19:34 casLoginView.html
 +</code>
  
 on va egalement prendre header.html (extrait vers src/main/resources/templates/fragments/header.html) pour y changer le logo  on va egalement prendre header.html (extrait vers src/main/resources/templates/fragments/header.html) pour y changer le logo 
docpublic/systemes/ssocas/cas71install.1739798924.txt.gz · Last modified: 2025/02/17 13:28 by adminjp
[unknown link type]Back to top
CC Attribution-Noncommercial-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0