This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
docpublic:systemes:ssocas:cas6install [2021/05/31 13:32] adminjp [personalisation des views] |
docpublic:systemes:ssocas:cas6install [2022/12/14 22:25] (current) adminjp [CAS6 template overlay] |
||
---|---|---|---|
Line 295: | Line 295: | ||
on commence par recuperer le template overlay de CAS | on commence par recuperer le template overlay de CAS | ||
- | cf https:// | + | cf https:// |
Line 674: | Line 674: | ||
May 22 11:27:55 ldap slapd[2086]: | May 22 11:27:55 ldap slapd[2086]: | ||
</ | </ | ||
+ | |||
+ | |||
+ | ==== attributes ==== | ||
+ | |||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
==== Registering Applications ==== | ==== Registering Applications ==== | ||
- | les appplications clientes | + | les appplications clientes |
- | nous délarons | + | nous déclarons |
< | < | ||
Line 720: | Line 727: | ||
</ | </ | ||
+ | pour les regex plus de details sur | ||
+ | * https:// | ||
+ | * https:// | ||
===== taches disponibles ===== | ===== taches disponibles ===== | ||
Line 776: | Line 786: | ||
* https:// | * https:// | ||
* https:// | * https:// | ||
+ | |||
+ | |||
+ | depuis 5.X on est passé de JSP a tymeleaf , on peux visualiser le resultat directmeent en html sans avoir besoin d'un serveur pour interpreter . | ||
pour personaliser des pages, il faut d' | pour personaliser des pages, il faut d' | ||
Line 931: | Line 944: | ||
[root@ssocas6 cas-overlay-template]# | [root@ssocas6 cas-overlay-template]# | ||
</ | </ | ||
- | ===== Cas4 UniconLabs/ | ||
- | suivant | + | Pour le text qui apparait dans la page , il s'agit de reference vers le systeme d' |
- | ==== git clone ==== | + | on extrait le fr |
- | + | ||
- | on recupere les sources via github : | + | |
< | < | ||
- | [disi@cas4 UniconLabs]$ git clone https://github.com/ | + | [root@ssocas6 cas-overlay-template]# ls /opt/test-6.3-cas-overlay-template/cas-overlay-template/ |
- | Cloning into ' | + | Copied file /opt/test-6.3-cas-overlay-template/ |
- | remote: Counting objects: 95, done. | + | |
- | remote: Total 95 (delta 0), reused 0 (delta 0) | + | |
- | Unpacking objects: 100% (95/95), done. | + | |
- | + | ||
- | [disi@cas4 UniconLabs]$ cd simple-cas4-overlay-template/ | + | |
- | [disi@cas4 simple-cas4-overlay-template]$ ls | + | |
- | build.xml etc LICENSE.txt | + | |
</ | </ | ||
- | ==== parametrage cas.properties ==== | + | === lie vers l'URL de changement de password |
- | le fichier de parametrage "cas.properties" | + | il est definit via le password Manamegement link => fragment pmlink a extraire pour trouver le bon lienvers le messages.propeties a modifier |
< | < | ||
- | [disi@cas4 simple-cas4-overlay-template]$ grep cas.properties | + | #./gradlew getResource -PresourceName=pmlinks |
- | <context:property-placeholder location="file:/etc/cas/cas.properties"/> | + | > Task : |
+ | Copied file / | ||
+ | |||
+ | [root@ssocas6d cas-overlay-template]# grep pwd.example.org | ||
+ | <span th:utext="# | ||
+ | |||
</ | </ | ||
- | pour le moment nous faisons un simple (server.name, host.name ) parametrage initiale | + | c'est donc le message screen.pm.button.forgotpwd |
< | < | ||
- | [disi@cas4 UniconLabs]$ cd simple-cas4-overlay-template/ | + | [root@ssocas6dev cas-overlay-template]# grep screen.pm.button.forgotpwd |
- | [disi@cas4 simple-cas4-overlay-template]$ ls | + | screen.pm.button.forgotpwd=< |
- | build.xml etc LICENSE.txt pom.xml README.md | + | |
- | [disi@cas4 simple-cas4-overlay-template]$ cd etc/ | + | |
- | [disi@cas4 etc]$ ls | + | |
- | cas.properties | + | |
- | [disi@cas4 etc]$ vim cas.properties | + | |
</ | </ | ||
- | petit backup/ | + | === CSS === |
+ | |||
+ | pour les gouts et les couleurs, cas.css | ||
< | < | ||
- | [disi@cas4 etc]$ git commit -a -m " | + | ./gradlew getResource |
- | [master cd5dbb4] custom cas.properties | + | > Task : |
- | 1 file changed, 3 insertions(+), | + | Copied |
</ | </ | ||
- | ==== /etc/cas directory ==== | ||
- | < | + | ===== health monitor ==== |
- | [root@cas4 etc]# mkdir cas | + | |
- | [root@cas4 etc]# chgrp disi /etc/cas/ | + | |
- | [root@cas4 etc]# chmod 775 /etc/cas/ | + | |
- | [disi@cas4 etc]$ cp cas.properties log4j.xml /etc/cas/ | + | si besoin d' |
- | </code> | + | /status est deprecated au profit de / |
+ | https:// | ||
- | ==== build ==== | + | ===== SAML ===== |
- | on lance la premiere compilation | + | * https:// |
+ | * https:// | ||
+ | |||
+ | |||
+ | ==== Gradle | ||
+ | |||
+ | si besoin d'une installation gradle independante du projet CAS (non indispensable du fait de l' | ||
+ | |||
+ | https:// | ||
< | < | ||
- | [disi@cas4 simple-cas4-overlay-template]$ mvn clean package | + | [root@ssocas6 ~]# wget https:// |
- | [INFO] Scanning for projects... | + | [root@ssocas6 ~]# cd /opt/ |
- | [INFO] | + | [root@ssocas6 opt]# unzip / |
- | [INFO] ------------------------------------------------------------------------ | + | [root@ssocas6 opt]# ln -s gradle-6.3 gradle |
- | [INFO] Building cas4-overlay 1.0 | + | [root@ssocas6 opt]# ls -l gradle |
- | [INFO] ------------------------------------------------------------------------ | + | lrwxrwxrwx 1 root root 10 22 mai 09:11 gradle |
- | Downloading: http:// | + | |
- | ... | + | </code> |
- | Downloaded: http:// | + | |
- | [INFO] | + | |
- | [INFO] --- maven-clean-plugin: | + | |
- | [INFO] | + | |
- | [INFO] --- maven-resources-plugin: | + | |
- | [debug] execute contextualize | + | |
- | [INFO] Using ' | + | |
- | [INFO] skip non existing resourceDirectory / | + | |
- | [INFO] | + | |
- | [INFO] --- maven-compiler-plugin: | + | |
- | Downloading: | + | |
- | ... | + | definir dans la variable PATH l'acces au binaire gradle |
- | Downloaded: http:// | + | |
- | Downloaded: http:// | + | |
- | [INFO] No sources to compile | + | |
- | [INFO] | + | |
- | [INFO] --- maven-resources-plugin: | + | |
- | [debug] execute contextualize | + | |
- | [INFO] Using 'UTF-8' encoding to copy filtered resources. | + | |
- | [INFO] skip non existing resourceDirectory / | + | |
- | [INFO] | + | |
- | [INFO] --- maven-compiler-plugin: | + | |
- | [INFO] No sources to compile | + | |
- | [INFO] | + | |
- | [INFO] --- maven-surefire-plugin: | + | |
- | [INFO] No tests to run. | + | |
- | [INFO] Surefire report directory: / | + | |
- | ------------------------------------------------------- | + | < |
- | T E S T S | + | [root@ssocas6 opt]# vim / |
- | ------------------------------------------------------- | + | [root@ssocas6 opt]# cat / |
+ | export PATH=/ | ||
- | Results : | + | [root@cas6 opt]# source / |
+ | [root@cas6 opt]# gradle -v | ||
- | Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 | + | Welcome to Gradle 6.3! |
- | ... | ||
- | Downloaded: http:// | ||
- | Downloaded: http:// | ||
- | [INFO] Packaging webapp | ||
- | [INFO] Assembling webapp [cas4-overlay] in [/ | ||
- | [INFO] Processing war project | ||
- | [INFO] Copying webapp resources [/ | ||
- | [INFO] Processing overlay [ id org.jasig.cas: | ||
- | [INFO] Webapp assembled in [1023 msecs] | ||
- | [INFO] Building war: / | ||
- | [INFO] ------------------------------------------------------------------------ | ||
- | [INFO] BUILD SUCCESS | ||
- | [INFO] ------------------------------------------------------------------------ | ||
- | [INFO] Total time: 21.857s | ||
- | [INFO] Finished at: Tue Dec 23 16:00:14 CET 2014 | ||
- | [INFO] Final Memory: 10M/25M | ||
- | [INFO] ------------------------------------------------------------------------ | ||
</ | </ | ||
- | ==== deploy | + | ===== Update dans la branche ===== |
- | et on deploie le cas.war fraichement créé dans le webapps | + | nous sommes en cas 6.3.2 et souhaitons passer sur la derniere version |
- | < | + | cela corrige le pb log4j , cf https://www.cert.ssi.gouv.fr/ |
- | [disi@cas4 ~]$ cp /home/disi/ | + | |
- | [disi@cas4 ~]$ ls -al / | + | |
- | total 24484 | + | |
- | drwxrwxr-x. 6 root | + | |
- | drwxr-xr-x. 3 root | + | |
- | drwxr-xr-x 7 tomcat tomcat | + | |
- | -rw-rw-r-- | + | |
- | </code> | + | |
- | catalina log de deploiement | + | La reponse du dev de CAS : https:// |
- | < | ||
- | janv. 06, 2015 11:46:17 AM org.apache.catalina.startup.HostConfig deployWAR | ||
- | INFOS: Déploiement de l' | ||
- | log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader). | ||
- | log4j:WARN Please initialize the log4j system properly. | ||
- | log4j:WARN See http:// | ||
- | log4j:ERROR setFile(null, | + | ==== update par git ==== |
- | java.io.FileNotFoundException: | + | |
- | </ | + | ==== etat des lieux ==== |
- | correction du pb de cas.log | + | === version actuelle === |
< | < | ||
- | [root@cas4 log]# mkdir cas | + | [root@cas6dev |
- | [root@cas4 log]# chown root: | + | cas.version=6.3.2 |
- | [root@cas4 log]# chmod 775 cas | + | |
</ | </ | ||
- | ===== FR CAS4 cas-overlay-demo ===== | ||
- | autre exemple | + | === etat de notre arborescence git === |
< | < | ||
- | [disi@cas4 ~]$ mkdir leleuj | + | [root@cas6dev |
- | [disi@cas4 ~]$ cd leleuj/ | + | Sur la branche 6.3 |
- | [disi@cas4 leleuj]$ git clone https:// | + | Votre branche est à jour avec 'origin/6.3'. |
- | Cloning into 'cas-overlay-demo'... | + | |
- | remote: Counting objects: 307, done. | + | Modifications qui ne seront pas validées |
- | remote: Total 307 (delta 0), reused 0 (delta 0) | + | |
- | Receiving objects: 100% (307/307), 60.10 KiB | 0 bytes/s, done. | + | |
- | Resolving deltas: 100% (104/104), done. | + | modifié : build.gradle |
+ | modifié : | ||
+ | modifié : | ||
+ | modifié : gradle.properties | ||
+ | modifié : | ||
</ | </ | ||
- | ... | + | => on a modifié des fichiers de parametrage non commité , il faut d' |
- | ===== httpd et proxy ajp ===== | + | |
- | il faut que le serveur reponde en https, avoir un apache en frontal de tomcat pour rediriger les requetes https vers tomcat est pratique | + | < |
+ | [root@cas6dev cas-overlay-template]# | ||
- | activation du service apache | + | [root@cas6dev cas-overlay-template]# |
+ | Committer: root < | ||
+ | 5 files changed, 51 insertions(+), | ||
+ | </ | ||
+ | |||
+ | |||
+ | === etat des branches === | ||
< | < | ||
- | [root@cas4 log]# systemctl enable httpd.service | + | [root@cas6dev cas-overlay-template]# git branch -a |
- | ln -s '/usr/lib/systemd/system/httpd.service' | + | * 6.3 |
+ | | ||
+ | remotes/origin/4.2 | ||
+ | remotes/origin/5.0.x | ||
+ | remotes/origin/5.1 | ||
+ | remotes/origin/5.2 | ||
+ | remotes/ | ||
+ | remotes/origin/ | ||
+ | remotes/ | ||
+ | remotes/ | ||
+ | remotes/ | ||
+ | remotes/ | ||
+ | .... | ||
</ | </ | ||
- | |||
- | firewall pour https (http:// | ||
< | < | ||
- | [root@cas4 certs]# firewall-cmd --permanent | + | [root@cas6dev cas-overlay-template]# git pull |
- | success | + | warning: Tirer sans spécifier comment réconcilier les branches divergentes |
- | [root@cas4 certs]# firewall-cmd --reload | + | est découragé. Vous pouvez éliminer ce message en lançant une des |
- | success | + | commandes suivantes avant votre prochain tirage : |
- | [root@cas4 certs]# firewall-cmd --list-services | + | |
- | dhcpv6-client https ssh tomcat | + | git config pull.rebase false # fusion (stratégie par défaut) |
+ | git config pull.rebase true # rebasage | ||
+ | git config pull.ff only # avance rapide seulement | ||
+ | |||
+ | Vous pouvez remplacer "git config" | ||
+ | ce soit l' | ||
+ | passer | ||
+ | remplacer à l' | ||
+ | |||
+ | remote: Enumerating objects: 248, done. | ||
+ | remote: Counting objects: 100% (248/248), done. | ||
+ | remote: Compressing objects: 100% (141/141), done. | ||
+ | remote: Total 248 (delta 86), reused 213 (delta 56), pack-reused 0 | ||
+ | Réception d' | ||
+ | Résolution des deltas: 100% (86/86), complété avec 5 objets locaux. | ||
+ | Depuis https:// | ||
+ | + 995813b...e33879a 6.3 -> origin/ | ||
+ | * [nouvelle branche] 6.4 -> origin/ | ||
+ | | ||
+ | * [nouvelle branche] graal-starter | ||
+ | + 652546e...1ae808c master | ||
+ | fatal: refus de fusionner des historiques sans relation | ||
</ | </ | ||
- | lien ajp | + | on a un soucis fusion des versions |
< | < | ||
- | [root@cas4 certs]# cat / | + | [root@cas6dev cas-overlay-template]# git status |
- | ProxyPass /cas ajp:// | + | Sur la branche 6.3 |
- | ProxyPass /manager ajp:// | + | Votre branche et ' |
+ | et ont 390 et 2 commits différents chacune respectivement. | ||
+ | (utilisez "git pull" pour fusionner la branche distante dans la vôtre) | ||
</ | </ | ||
- | recharge de cette configuration apache | + | notre branche locale a divergé avec la remote (origin/ |
< | < | ||
- | [root@cas4 certs]# systemctl reload httpd.service | + | [root@cas6dev cas-overlay-template]# git pull |
- | </ | + | warning: Tirer sans spécifier comment réconcilier les branches divergentes |
+ | est découragé. Vous pouvez éliminer ce message en lançant une des | ||
+ | commandes suivantes avant votre prochain tirage : | ||
- | ==== CAS login URL ==== | + | git config pull.rebase false # fusion (stratégie par défaut) |
+ | git config pull.rebase true # rebasage | ||
+ | git config pull.ff only # avance rapide seulement | ||
- | premier test d'usage | + | Vous pouvez remplacer "git config" |
+ | ce soit l'option par défaut pour tous les dépôts. Vous pouvez aussi | ||
+ | passer --rebase, --no-rebase ou --ff-only sur la ligne de commande pour | ||
+ | remplacer à l' | ||
- | https:// | + | fatal: refus de fusionner des historiques sans relation |
+ | </code> | ||
- | saisie du login casuser et le password associé , log associés | + | premiere tentative de rebase |
< | < | ||
- | 2015-01-07 11:36:24,185 INFO [org.jasig.cas.authentication.PolicyBasedAuthenticationManager] - < | + | [root@cas6dev cas-overlay-template]# git pull --rebase |
- | 2015-01-07 11:36:24,185 DEBUG [org.jasig.cas.authentication.principal.PersonDirectoryPrincipalResolver] - < | + | Fusion automatique de gradle.properties |
- | 2015-01-07 11:36:24,185 DEBUG [org.jasig.cas.authentication.principal.PersonDirectoryPrincipalResolver] - < | + | CONFLIT (contenu) |
- | 2015-01-07 11:36:24,186 DEBUG [org.jasig.cas.authentication.PolicyBasedAuthenticationManager] - < | + | Fusion automatique de etc/cas/ |
- | 2015-01-07 11: | + | CONFLIT (contenu) |
- | 2015-01-07 11: | + | Fusion automatique de etc/ |
- | 2015-01-07 11: | + | CONFLIT (contenu) |
- | 2015-01-07 11: | + | Fusion automatique de build.gradle |
- | ============================================================= | + | CONFLIT (contenu) : Conflit de fusion dans build.gradle |
- | WHO: audit: | + | error: impossible d' |
- | WHAT: supplied credentials: | + | Resolve all conflicts manually, mark them as resolved |
- | ACTION: AUTHENTICATION_SUCCESS | + | "git add/ |
- | APPLICATION: | + | You can instead skip this commit: run "git rebase |
- | WHEN: Wed Jan 07 11:36:24 CET 2015 | + | To abort and get back to the state before "git rebase", |
- | CLIENT IP ADDRESS: 157.158.211.9 | + | impossible d' |
- | SERVER IP ADDRESS: cas4.exemple.fr | + | |
- | ============================================================= | + | |
</ | </ | ||
- | Cela marche bien avec un compte | + | on doit corriger manuellement les fichiers |
+ | < | ||
+ | } | ||
+ | projectsToAdd.each {implementation it} | ||
+ | } | ||
+ | } | ||
+ | <<<<<<< | ||
- | ===== Ldap authentication Handler ===== | ||
- | reference : http:// | ||
- | il y a 3 etapes / fichiers a modifier | ||
- | ==== pom.xml ==== | ||
- | indiquer au fichier de definition du projet qu'on veux utiliser le support-ldap : | ||
- | < | + | developmentOnly " |
- | [disi@cas4 simple-cas4-overlay-template]$ diff pom.xml.orig pom.xml | + | ======= |
- | 53a54,59 | + | // CAS dependencies/ |
- | > < | + | |
- | > < | + | |
- | > < | + | |
- | > < | + | |
- | > </dependency> | + | |
- | > | + | // |
+ | >>>>>>> | ||
+ | } | ||
</ | </ | ||
- | ==== deployerConfigContext.xml ==== | + | on retire les commentaires du conflit (<<<< |
- | les sources de l' | + | |
+ | corriger aussi les autres fichiers | ||
< | < | ||
- | [disi@cas4 simple-cas4-overlay-template]$ cp ./target/ | + | root@cas6dev cas-overlay-template]# git status |
+ | rebasage interactif en cours ; sur e33879a | ||
+ | Dernière commande effectuée (1 commande effectuée) : | ||
+ | pick 36afdb9 add build.gradle etc/cas/config/cas.properties etc/ | ||
+ | Aucune commande restante. | ||
+ | Vous êtes en train de rebaser la branche ' | ||
+ | (réglez les conflits puis lancez "git rebase --continue" | ||
+ | (utilisez "git rebase --skip" | ||
+ | (utilisez "git rebase --abort" | ||
+ | |||
+ | Modifications qui seront validées : | ||
+ | (utilisez "git restore --staged < | ||
+ | modifié : | ||
+ | |||
+ | Chemins non fusionnés : | ||
+ | (utilisez "git restore --staged < | ||
+ | (utilisez "git add < | ||
+ | modifié des deux côtés : build.gradle | ||
+ | modifié des deux côtés : etc/ | ||
+ | modifié des deux côtés : etc/ | ||
+ | modifié des deux côtés : gradle.properties | ||
</ | </ | ||
- | il faut ajouter toutes les directives présentées | + | === merger |
- | notament dans le bean id=" | + | on corrige les conflits de tous les fichiers énoncés ci-dessus |
< | < | ||
- | < | + | [root@cas6dev cas-overlay-template]# vim etc/ |
- | </code> | + | [root@cas6dev cas-overlay-template]# |
+ | [root@cas6dev cas-overlay-template]# | ||
+ | [root@cas6dev cas-overlay-template]# | ||
+ | [root@cas6dev cas-overlay-template]# | ||
+ | [HEAD détachée 088681c] merged build.gradle etc/ | ||
+ | Committer: root <root@cas6dev.domain.fr> | ||
- | et ajouter aussi le bean referencé usernamePasswordCredentialsResolver | ||
- | < | + | 5 files changed, 55 insertions(+), |
- | <bean id=" | + | |
- | class=" | + | |
</ | </ | ||
- | j'ai aussi remplacé principalIdAttribute=" | + | maintenant que tout est mergé/ |
- | + | ||
- | au final voici tout ce qui a été changé dans deployerConfigContext.xml | + | |
< | < | ||
- | [disi@cas4 disi]$ | + | [root@cas6dev |
- | 64a65 | + | Rebasage et mise à jour de refs/heads/6.3 avec succès. |
- | > <entry key-ref=" | + | |
- | 127a129, | + | |
- | > | + | |
- | > <bean id=" | + | |
- | > | + | |
- | > | + | |
- | > <!-- http://jasig.github.io/ | + | |
- | > <bean id=" | + | |
- | > | + | |
- | > | + | |
- | > | + | |
- | > < | + | |
- | > < | + | |
- | > < | + | |
- | > | This map provides a simple attribute resolution mechanism. | + | |
- | > | Keys are LDAP attribute names, values are CAS attribute names. | + | |
- | > | Use this facility instead of a PrincipalResolver if LDAP is | + | |
- | > | the only attribute source. | + | |
- | > --> | + | |
- | > < | + | |
- | > < | + | |
- | > < | + | |
- | > </ | + | |
- | > </ | + | |
- | > </ | + | |
- | > | + | |
- | > <bean id=" | + | |
- | > | + | |
- | > | + | |
- | > | + | |
- | > <bean id=" | + | |
- | > | + | |
- | > | + | |
- | > | + | |
- | > | + | |
- | > | + | |
- | > <bean id=" | + | |
- | > | + | |
- | > | + | |
- | > | + | |
- | > <bean id=" | + | |
- | > | + | |
- | > <bean id=" | + | |
- | > | + | |
- | > | + | |
- | > | + | |
- | > | + | |
- | > | + | |
- | > | + | |
- | > | + | |
- | > | + | |
- | > <bean id=" | + | |
- | > | + | |
- | > | + | |
- | > | + | |
- | > | + | |
- | > | + | |
- | > | + | |
- | > <bean id=" | + | |
- | > | + | |
- | > | + | |
- | > <bean id=" | + | |
- | > | + | |
- | > | + | |
- | > | + | |
- | > | + | |
- | > | + | |
- | > <bean id=" | + | |
- | > < | + | |
- | > < | + | |
- | > | + | |
- | > </ | + | |
- | > </ | + | |
- | > | + | |
- | > <bean id=" | + | |
- | > | + | |
- | > | + | |
- | > | + | |
- | > <bean id=" | + | |
- | > | + | |
- | > <bean id=" | + | |
- | > | + | |
- | > | + | |
- | > <bean id=" | + | |
- | > | + | |
- | > | + | |
- | > | + | |
- | > <bean id=" | + | |
</ | </ | ||
- | voici le fichier complet : | ||
- | {{: | + | ==== rebuild ==== |
- | ==== cas.properties ==== | + | d' |
- | + | ||
- | enfin , pour alimenter les variables definies dans le deployerConfigContext.xml ci-dessus, voici le cas.properties associé, idem j' | + | |
< | < | ||
- | ldap.baseDn=ou=people, | + | [root@cas6dev cas-overlay-template]# systemctl stop tomcat.service |
- | ldap.trustedCert=/ | + | |
</ | </ | ||
- | variables appelées dans deployerConfigContext.xml mais pas definies dans le cas.properties d' | + | on peux reconstruire |
- | (cf http:// | + | < |
+ | [root@cas6dev | ||
- | voici le fichier exemple complet | + | To honour the JVM settings for this build a single-use Daemon process will be forked. See https:// |
+ | Daemon will be stopped at the end of the build | ||
- | {{: | + | Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. |
- | maintenant une authentification CAS4 + ldap fonctionne | + | You can use ' |
- | {{:docpublic: | + | See https://docs.gradle.org/ |
- | ===== debug info ===== | + | BUILD SUCCESSFUL in 1m 31s |
+ | 12 actionable tasks: 12 executed | ||
+ | [root@cas6dev cas-overlay-template]# | ||
+ | / | ||
+ | |||
+ | [root@cas6dev cas-overlay-template]# | ||
+ | cp : voulez-vous écraser '/ | ||
+ | </ | ||
- | une fois cette configuration en place (mvn clean package et relance du tomcat | + | === restart |
- | + | ||
- | log tomcat : | + | |
+ | on redemare tomcat | ||
< | < | ||
- | 2015-01-07 16: | + | [root@cas6dev |
- | 2015-01-07 16: | + | [root@cas6dev |
- | 2015-01-07 16: | + | |
- | 2015-01-07 16: | + | |
- | 2015-01-07 16: | + | |
- | 2015-01-07 16: | + | |
- | .... | + | |
- | .... | + | |
- | [displayName[Test TEST]]], responseControls=null, | + | |
- | 2015-01-07 16: | + | |
- | 2015-01-07 16: | + | |
- | 2015-01-07 16: | + | |
- | 2015-01-07 16: | + | |
- | 2015-01-07 16: | + | |
- | 2015-01-07 16: | + | |
- | 2015-01-07 16: | + | |
- | 2015-01-07 16: | + | |
- | 2015-01-07 16: | + | |
- | ============================================================= | + | |
- | WHO: audit: | + | |
- | WHAT: supplied credentials: | + | |
- | ACTION: AUTHENTICATION_SUCCESS | + | |
- | APPLICATION: | + | |
- | WHEN: Wed Jan 07 16:18:36 CET 2015 | + | |
- | CLIENT IP ADDRESS: 157.158.211.9 | + | |
- | SERVER IP ADDRESS: cas4.exemple.fr | + | |
- | ============================================================= | + | |
- | > | + | |
- | 2015-01-07 16: | + | / \ | _ \| ____| _ \| ____/ _ \ / ___| / \ / ___| |
- | 2015-01-07 16: | + | / _ \ | |_) | _| | |_) | _|| | | | | | / _ \ \___ \ |
- | 2015-01-07 16: | + | / ___ \| __/| |___| _ <| |__| |_| | | |___ / ___ \ ___) | |
- | ============================================================= | + | /_/ |
- | WHO: audit: | + | |
- | WHAT: TGT-1-I9PM7KyilG0eFfHYLp23qvUymsveWehnNUtQn7BEAtJtSidyBP-cas4.exemple.fr | + | |
- | ACTION: TICKET_GRANTING_TICKET_CREATED | + | |
- | APPLICATION: | + | |
- | WHEN: Wed Jan 07 16:18:36 CET 2015 | + | |
- | CLIENT IP ADDRESS: 157.158.211.9 | + | |
- | SERVER IP ADDRESS: cas4.exemple.fr | + | |
- | ============================================================= | + | |
- | </code> | + | |
- | requete dans ldap.log coté ldap serveur | + | CAS Version: 6.3.7 |
+ | CAS Branch: 6.3.x | ||
+ | CAS Commit Id: 7fd72bfc3b295ffea9c9a518a082ff701aa97afa | ||
+ | CAS Build Date/Time: 2021-12-11T22: | ||
+ | Spring Boot Version: 2.3.7.RELEASE | ||
+ | Spring Version: 5.2.12.RELEASE | ||
+ | Java Home: / | ||
+ | Java Vendor: Red Hat, Inc. | ||
+ | Java Version: 11.0.12 | ||
+ | JVM Free Memory: 348 MB | ||
+ | JVM Maximum Memory: 910 MB | ||
+ | JVM Total Memory: 623 MB | ||
- | < | ||
- | Jan 7 16:59:36 ldap4 slapd[1236]: | ||
- | Jan 7 16:59:36 ldap4 slapd[1236]: | ||
- | Jan 7 16:59:36 ldap4 slapd[1236]: | ||
- | Jan 7 16:59:36 ldap4 slapd[1236]: | ||
- | Jan 7 16:59:36 ldap4 slapd[1236]: | ||
- | Jan 7 16:59:36 ldap4 slapd[1236]: | ||
- | Jan 7 16:59:36 ldap4 slapd[1236]: | ||
- | Jan 7 16:59:36 ldap4 slapd[1236]: | ||
</ | </ | ||
+ | On est up2date pour CAS ! . | ||
- | ===== redeploiement cas ===== | ||
- | On reconstruit a nouveau Cas | + | ===== update tomcat ===== |
+ | depuis le passage en rhel/ | ||
+ | |||
+ | ==== download et de-tar ==== | ||
< | < | ||
- | [disi@cas4 simple-cas4-overlay-template]$ mvn -Dmaven.test.skip\=true package | + | [root@cas6dev opt]# wget https:// |
+ | [root@cas6dev opt]# tar xvfz apache-tomcat-9.0.56.tar.gz | ||
+ | [root@cas6dev opt]# chown -R tomcat: | ||
+ | |||
+ | [root@cas6dev opt]# cd apache-tomcat-9.0.56 | ||
</ | </ | ||
+ | ==== edit config files ==== | ||
- | puis on fait un RAZ du war dans l' | + | il faut retablir la configuration |
- | < | + | |
- | [root@cas4 cas-server-webapp]# systemctl stop tomcat.service | + | - conf/tomcat-users.xml |
- | [root@cas4 cas-server-webapp]# | + | - webapps/manager/META-INF/context.xml # definir le controle d' |
- | [root@cas4 cas-server-webapp]# rm -rf /var/ | + | |
- | [root@cas4 cas-server-webapp]# | + | |
- | </ | + | |
- | ==== Gradle | + | ==== cas.war dans webapps |
- | si besoin d'une installation gradle independante du projet CAS : | + | on remet la cas.war dans le webapps du la nouvelle version tomcat pour redeploiement automatique au lancement de tomcat |
- | + | ||
- | https:// | + | |
< | < | ||
- | [root@ssocas6 ~]# wget https://downloads.gradle-dn.com/ | + | [root@cas6dev opt]# cp /opt/6.3-updated-cas-overlay-template/cas-overlay-template/build/libs/cas.war |
- | [root@ssocas6 ~]# cd /opt/ | + | |
- | [root@ssocas6 opt]# unzip /root/gradle-6.3-bin.zip | + | |
- | [root@ssocas6 | + | |
- | [root@ssocas6 opt]# ls -l gradle | + | |
- | lrwxrwxrwx 1 root root 10 22 mai 09:11 gradle -> gradle-6.3 | + | |
</ | </ | ||
- | definir dans la variable PATH l' | + | ==== lien tomcat et restart ==== |
+ | |||
+ | on arrete tomcat, repositionne le lien /opt/tomcat vers notre nouvelle version et on relance tomcat | ||
< | < | ||
- | [root@ssocas6 | + | [root@cas6dev |
- | [root@ssocas6 | + | [root@cas6dev opt]# rm tomcat |
- | export PATH=/opt/gradle/bin:$PATH | + | rm : supprimer ' |
+ | [root@cas6dev opt]# ln -s apache-tomcat-9.0.56 tomcat | ||
+ | [root@cas6dev | ||
+ | [root@cas6dev opt]# tail -f tomcat/logs/catalina.out | ||
+ | ... | ||
+ | / \ | _ \| ____| _ \| ____/ _ \ / ___| / \ / ___| | ||
+ | / _ \ | |_) | _| | |_) | _|| | | | | | / _ \ \___ \ | ||
+ | / ___ \| __/| |___| _ <| |__| |_| | | |___ / ___ \ ___) | | ||
+ | / | ||
+ | |||
- | [root@cas6 opt]# source / | + | CAS Version: 6.3.7 |
- | [root@cas6 opt]# gradle -v | + | CAS Branch: |
- | + | .. | |
- | Welcome to Gradle | + | ------------------------------------------------------------ |
+ | Apache Tomcat Version: Apache Tomcat/ | ||
+ | ------------------------------------------------------------ | ||
</ | </ |