Jehan, Did you clone the overlay project or use the initializer? You could try the one you did not use (but they should be the same result). To see available properties: ./gradlew exportConfigMetadata
This may be a spring question. Ray On Tue, 2024-06-04 at 09:31 -0700, jehan procaccia wrote: You don't often get email from [email protected]. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification> Hi I am not upgrading, but rebuild from scratch on 7.x (+ alam9 + java 21 + tomcat 10) , except that I could find any cas.properties sample file from 7.x (!?) so I took the one from my production cas-server 6.3.7, but maybe some properties are not anymore compatible ? (watch mycas.properties in 1rst post) about build.gradle, I did not touch those 2 lines that are commented do Not modify ... dependencies { /** * Do NOT modify the lines below or else you will risk breaking dependency management. **/ implementation enforcedPlatform("org.apereo.cas:cas-server-support-bom:${project.'cas.version'}") implementation platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES) but I added below those 2 to enable ldap auth and json service-registry management : // ADD support-ldap and json jehan implementation "org.apereo.cas:cas-server-support-ldap:${project.'cas.version'}" implementation "org.apereo.cas:cas-server-support-json-service-registry:${project.'cas.version'}" // jehan Still don't know why I have the error : "org.springframework.boot.actuate.autoconfigure.sbom.SbomEndpointAutoConfiguration caused by ClassNotFoundException" [1] Any other advices ? thanks . On Tuesday, June 4, 2024 at 1:49:02 AM UTC+2 Ray Bon wrote: Jehan, If you are upgrading, make sure the appropriate changes are in [at least] gradle.properties and build.gradle. I have these in build.gradle: implementation enforcedPlatform("org.apereo.cas:cas-server-support-bom:${project.'cas.version'}") implementation platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES) You should also verify the names of properties, they can change between releases. Ray On Mon, 2024-06-03 at 01:15 -0700, jehan procaccia wrote: You don't often get email from [email protected]. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification> Hello I did build correclty cas 7.0.4 + ldap auth, unfortunaltly after putting the cas.war into the tomcat webapps folder , the webapp fails on "org.springframework.boot.actuate.autoconfigure.sbom.SbomEndpointAutoConfiguration caused by ClassNotFoundException" [1] can you help me tracing this pb ? did I forgot to declare a propertie ? , there was nocas.propertiessample file from git clone, I took one from 6.x and adapted ... cf [2], perhaps a pb there ? Thanks [1] Logs details; <Validated CAS property sources and configuration successfully.> CAS Version: 7.0.4 CAS Branch: 7.0.x CAS Commit Id: d41ac9d5e157605fc43d97a77582c2062e864874 CAS Build Date/Time: 2024-04-26T07:43:16.528866Z Spring Boot Version: 3.2.1 Spring Version: 6.1.2 Java Home: /usr/lib/jvm/java-21-openjdk-21.0.3.0.9-1.el9.alma.1.x86_64 Java Vendor: Red Hat, Inc. Java Version: 21.0.3 Servlet Version: 6.0 JVM Free Memory: 236 MB JVM Maximum Memory: 1 GB JVM Total Memory: 811 MB Apache Tomcat Version: Apache Tomcat/10.1.20 <Configuration files found at [/etc/cas/config] are [[file [/etc/cas/config/cas.properties]]] under profile(s) [[standalone]]> 2024-06-03 10:00:06,968 WARN [org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext] - <Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [org.apereo.cas.web.CasWebApplication]: Error processing condition on org.springframework.boot.actuate.autoconfigure.sbom.SbomEndpointAutoConfiguration> 03-Jun-2024 10:00:07.002 SEVERE [main] org.apache.catalina.startup.HostConfig.deployWAR Error deploying web application archive [/opt/tomcat/webapps/cas.war] ... Caused by: java.lang.ClassNotFoundException: org.springframework.boot.actuate.sbom.SbomEndpoint rror creating bean due to: Failed to process import candidates for configuration class [org.apereo.cas.web.CasWebApplication]: Error processing condition on org.springframework.boot.actuate.autoconfigure.sbom.SbomEndpointAutoConfiguration caused by ClassNotFoundException: org.springframework.boot.actuate.sbom.SbomEndpoint [2] /etc/cas/config/cas.properties cas.server.name<https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcas.server.name%2F&data=05%7C02%7Crbon%40uvic.ca%7C77f0a543af344a6b654008dc84b3d925%7C9c61d3779894427cb13b1d6a51662b4e%7C0%7C0%7C638531155484779445%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C60000%7C%7C%7C&sdata=Jd5CvvQdpcoiTx8xQEcSDDycmpn2PDH3S9yYEief%2Bkk%3D&reserved=0>=https://cas7.domain.fr:443<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcas7.domain.fr%2F&data=05%7C02%7Crbon%40uvic.ca%7C77f0a543af344a6b654008dc84b3d925%7C9c61d3779894427cb13b1d6a51662b4e%7C0%7C0%7C638531155484779445%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C60000%7C%7C%7C&sdata=KWRN8hG2sHS%2FR1%2FBZTi%2B73mXyDLSoSJ4MeZ9z5VVJ4I%3D&reserved=0> cas.server.prefix=${cas.server.name<https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcas.server.name%2F&data=05%7C02%7Crbon%40uvic.ca%7C77f0a543af344a6b654008dc84b3d925%7C9c61d3779894427cb13b1d6a51662b4e%7C0%7C0%7C638531155484779445%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C60000%7C%7C%7C&sdata=Jd5CvvQdpcoiTx8xQEcSDDycmpn2PDH3S9yYEief%2Bkk%3D&reserved=0>}/cas logging.config=file:/etc/cas/config/log4j2.xml cas.authn.accept.users= ### Connexion LDAP ##cas.authn.ldap\[0\].providerClass=org.ldaptive.provider.unboundid.UnboundIDProvider cas.authn.ldap\[0\].type=AUTHENTICATED #cas.authn.ldap\[0\].use-start-tls=true cas.authn.ldap\[0\].ldapUrl=ldaps://ldapserver.domain.fr<https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fldapserver.domain.fr%2F&data=05%7C02%7Crbon%40uvic.ca%7C77f0a543af344a6b654008dc84b3d925%7C9c61d3779894427cb13b1d6a51662b4e%7C0%7C0%7C638531155484779445%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C60000%7C%7C%7C&sdata=5JKq0FZO8tCxg%2FR4TkpUqg%2Bchq62EpAmRiR9OYLtZsk%3D&reserved=0> cas.authn.ldap\[0\].baseDn= dc=domain,dc=fr cas.authn.ldap\[0\].subtreeSearch=true #cas.authn.ldap\[0\].searchFilter=uid=\{user\} cas.authn.ldap\[0\].searchFilter=(&(uid=\{user\})(supannRessourceEtat={COMPTE}A:*)) cas.authn.ldap\[0\].principalAttributeList=cn,sn,givenName,displayName,mail,uid ### Credential to connect to LDAP cas.authn.ldap\[0\].bindDn=CN=binduser,dc=domain,dc=fr cas.authn.ldap\[0\].bindCredential=!SECRET! ### Registering Applications cas.serviceRegistry.json.location: file:/etc/cas/services #tunning cas.ticket.tgt.primary.max-time-to-live-in-seconds: 36000 cas.ticket.tgt.primary.time-to-kill-in-seconds: 14400 cas.authn.authentication-attribute-release.enabled: true -- - 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 [email protected]. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/aa72b3559b63deb48128f5091da2717b874da57b.camel%40uvic.ca.
