This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
docpublic:systemes:shibboleth:idpv4xc8 [2021/06/03 13:16] adminjp [Delegation d'authentification a CAS] |
docpublic:systemes:shibboleth:idpv4xc8 [2021/06/30 17:48] (current) adminjp [personnaliser la page de login interne] |
||
---|---|---|---|
Line 325: | Line 325: | ||
< | < | ||
- | [root@idpx opt]# mkdir shibidp-src-4.1.0 | + | [root@idpx opt]# mkdir shibidp-src-4.1.2 |
- | [root@idpx opt]# cd shibidp-src-4.1.0/ | + | [root@idpx opt]# cd shibidp-src-4.1.2/ |
- | [root@idpx shibidp-src-4.1.0]# wget https:// | + | [root@idpx shibidp-src-4.1.2]# wget https:// |
- | --2021-05-10 21: | + | |
- | [root@idpx shibidp-src]# | + | [root@idpx shibidp-src]# |
- | [root@idpx shibidp-src]# | + | [root@idpx shibidp-src]# |
- | [root@idpx shibboleth-identity-provider-4.1.0]# ls | + | [root@idpx shibboleth-identity-provider-4.1.2]# ls |
bin conf credentials | bin conf credentials | ||
</ | </ | ||
Line 342: | Line 342: | ||
< | < | ||
- | [root@idpx shibboleth-identity-provider-4.1.0]# ./ | + | [root@idpx shibboleth-identity-provider-4.1.2]# ./ |
- | Buildfile: / | + | Buildfile: / |
install: | install: | ||
- | Source (Distribution) Directory (press < | + | Source (Distribution) Directory (press < |
Installation Directory: [/ | Installation Directory: [/ | ||
- | INFO [net.shibboleth.idp.installer.V4Install: | + | INFO [net.shibboleth.idp.installer.V4Install: |
Host Name: [idpx.intbstsp.fr] ? | Host Name: [idpx.intbstsp.fr] ? | ||
idpex.imtbstsp.eu | idpex.imtbstsp.eu | ||
Line 369: | Line 369: | ||
INFO [net.shibboleth.idp.installer.V4Install: | INFO [net.shibboleth.idp.installer.V4Install: | ||
- | INFO [net.shibboleth.idp.installer.BuildWar: | + | INFO [net.shibboleth.idp.installer.BuildWar: |
INFO [net.shibboleth.idp.installer.BuildWar: | INFO [net.shibboleth.idp.installer.BuildWar: | ||
INFO [net.shibboleth.idp.installer.BuildWar: | INFO [net.shibboleth.idp.installer.BuildWar: | ||
Line 382: | Line 382: | ||
< | < | ||
- | [root@idpx shibboleth-identity-provider-4.0.1]# ls -l / | + | [root@idpx shibboleth-identity-provider-4.1.2]# ls -l / |
total 36 | total 36 | ||
- | -rw------- 1 root root 1525 10 mai 22:16 idp-backchannel.crt | + | -rw------- 1 root root 1517 11 juin 15:18 idp-backchannel.crt |
- | -rw------- 1 root root 3409 10 mai 22:16 idp-backchannel.p12 | + | -rw------- 1 root root 3399 11 juin 15:18 idp-backchannel.p12 |
- | -rw------- 1 root root 1525 10 mai 22:15 idp-encryption.crt | + | -rw------- 1 root root 1517 11 juin |
- | -rw------- 1 root root 2455 10 mai 22:15 idp-encryption.key | + | -rw------- 1 root root 2459 11 juin |
- | -rw------- 1 root root 1525 10 mai 22:15 idp-signing.crt | + | -rw------- 1 root root 1517 11 juin |
- | -rw------- 1 root root 2459 10 mai 22:15 idp-signing.key | + | -rw------- 1 root root 2455 11 juin |
- | -rw------- 1 root root 502 10 mai 22:17 sealer.jks | + | -rw------- 1 root root 502 11 juin 15:19 sealer.jks |
- | -rw------- 1 root root | + | -rw------- 1 root root |
- | -rw------- 1 root root 581 10 mai 22:17 secrets.properties | + | -rw------- 1 root root 581 11 juin 15:19 secrets.properties |
</ | </ | ||
Line 398: | Line 398: | ||
< | < | ||
- | [root@idpx shibboleth-identity-provider-4.0.1]# chown -R tomcat / | + | [root@idpx shibboleth-identity-provider-4.1.2]# chown -R tomcat / |
</ | </ | ||
Line 466: | Line 466: | ||
[root@idpx war]# cd / | [root@idpx war]# cd / | ||
[root@idpx lib]# wget https:// | [root@idpx lib]# wget https:// | ||
- | --2020-07-05 11: | ||
</ | </ | ||
Line 475: | Line 474: | ||
< | < | ||
- | [root@idpx]# | + | [root@idpx]# |
[root@idpx] cd webapp/ | [root@idpx] cd webapp/ | ||
[root@idpx webapp]# ls | [root@idpx webapp]# ls | ||
- | css images | + | css images |
[root@idpx webapp]# cd WEB-INF/ | [root@idpx webapp]# cd WEB-INF/ | ||
[root@idpx WEB-INF]# ls | [root@idpx WEB-INF]# ls | ||
Line 489: | Line 488: | ||
< | < | ||
- | [root@idpx shibboleth-identity-provider-4.1.0]# ./ | + | [root@idpx shibboleth-identity-provider-4.1.2]# ./ |
- | Buildfile: /opt/ | + | Buildfile: / |
install: | install: | ||
- | Source (Distribution) Directory (press < | + | Source (Distribution) Directory (press < |
Installation Directory: [/ | Installation Directory: [/ | ||
- | INFO [net.shibboleth.idp.installer.V4Install: | + | INFO [net.shibboleth.idp.installer.V4Install: |
- | INFO [net.shibboleth.idp.installer.BuildWar: | + | INFO [net.shibboleth.idp.installer.BuildWar: |
INFO [net.shibboleth.idp.installer.BuildWar: | INFO [net.shibboleth.idp.installer.BuildWar: | ||
INFO [net.shibboleth.idp.installer.BuildWar: | INFO [net.shibboleth.idp.installer.BuildWar: | ||
Line 504: | Line 503: | ||
BUILD SUCCESSFUL | BUILD SUCCESSFUL | ||
- | Total time: 15 seconds | + | Total time: 7 seconds |
</ | </ | ||
Line 529: | Line 529: | ||
< | < | ||
- | [root@idpx | + | [root@idpx |
### Operating Environment Information | ### Operating Environment Information | ||
operating_system: | operating_system: | ||
operating_system_version: | operating_system_version: | ||
operating_system_architecture: | operating_system_architecture: | ||
- | jdk_version: | + | jdk_version: |
- | available_cores: | + | available_cores: |
- | used_memory: | + | used_memory: |
maximum_memory: | maximum_memory: | ||
### Identity Provider Information | ### Identity Provider Information | ||
- | idp_version: | + | idp_version: |
- | start_time: 2021-05-10T20:42:12.417Z | + | start_time: 2021-06-11T13:36:01.576Z |
- | current_time: | + | current_time: |
- | uptime: | + | uptime: |
enabled modules: | enabled modules: | ||
idp.authn.Password (Password Authentication) | idp.authn.Password (Password Authentication) | ||
idp.admin.Hello (Hello World) | idp.admin.Hello (Hello World) | ||
+ | |||
+ | installed plugins: | ||
+ | |||
+ | service: shibboleth.LoggingService | ||
+ | last successful reload attempt: 2021-06-11T13: | ||
+ | last reload attempt: 2021-06-11T13: | ||
+ | |||
+ | service: shibboleth.AttributeFilterService | ||
+ | last successful reload attempt: 2021-06-11T13: | ||
+ | last reload attempt: 2021-06-11T13: | ||
+ | |||
... | ... | ||
+ | service: shibboleth.ManagedBeanService | ||
+ | last successful reload attempt: 2021-06-11T13: | ||
+ | last reload attempt: 2021-06-11T13: | ||
+ | |||
</ | </ | ||
Line 743: | Line 758: | ||
==== personnaliser la page de login interne ==== | ==== personnaliser la page de login interne ==== | ||
- | il est possible de personnaliser la page de login intégré a l'IDP cf: | + | Avant de passer a une delagation d' |
* https:// | * https:// | ||
Line 766: | Line 781: | ||
- | en IDP v4 , mettre l' | + | en IDP v4 , lors du deploiement initial |
< | < | ||
Line 774: | Line 789: | ||
idp.logo=/ | idp.logo=/ | ||
+ | </ | ||
+ | |||
+ | ==== Logo sur views / messages ==== | ||
+ | |||
+ | ref : https:// | ||
+ | |||
+ | en IDP v 4.1.2 pour afficher le logo de l' | ||
+ | |||
+ | - deposer le fichier de logo dans le repertoire | ||
+ | - editer le fichier de porpertis des message pour y definir le parametre idp.logo | ||
+ | - relancer le buid + stop-start de tomcat | ||
+ | |||
+ | === 1) deposer le fichier logo === | ||
+ | |||
+ | < | ||
+ | [root@idp4t shibboleth-idp]# | ||
+ | -rw-r--r-- 1 root root 13640 30 juin 07:53 edit-webapp/ | ||
+ | </ | ||
+ | |||
+ | === 2) messages.properties ==== | ||
+ | |||
+ | < | ||
+ | [root@idp4t shibboleth-idp]# | ||
+ | # You can define message properties here to override messages defined in | ||
+ | # the system-supplied message file or to add your own messages. | ||
+ | idp.logo = / | ||
+ | </ | ||
+ | |||
+ | === 3) re-build === | ||
+ | |||
+ | on rebuild le war afin qu'il soit redeployer dans le webapps de tomcat | ||
+ | |||
+ | < | ||
+ | [root@idp4t shibboleth-idp]# | ||
+ | Buildfile: / | ||
+ | |||
+ | build-war: | ||
+ | Installation Directory: [/ | ||
+ | |||
+ | INFO [net.shibboleth.idp.installer.BuildWar: | ||
+ | INFO [net.shibboleth.idp.installer.BuildWar: | ||
+ | |||
+ | INFO [net.shibboleth.idp.installer.BuildWar: | ||
+ | INFO [net.shibboleth.idp.installer.BuildWar: | ||
+ | |||
+ | BUILD SUCCESSFUL | ||
+ | Total time: 7 seconds | ||
</ | </ | ||
===== Attribute Resolver v4 ===== | ===== Attribute Resolver v4 ===== | ||
Line 1062: | Line 1124: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | ===== modules ===== | ||
+ | |||
+ | ==== liste ==== | ||
+ | |||
+ | lister les modules et leur etat d' | ||
+ | |||
+ | < | ||
+ | [root@idpx bin]# ./module.sh --list | ||
+ | Module: idp.authn.Duo [DISABLED] | ||
+ | Module: idp.authn.External [ENABLED] | ||
+ | Module: idp.authn.Function [DISABLED] | ||
+ | Module: idp.authn.IPAddress [DISABLED] | ||
+ | Module: idp.authn.MFA [DISABLED] | ||
+ | Module: idp.authn.Password [ENABLED] | ||
+ | Module: idp.authn.RemoteUser [DISABLED] | ||
+ | Module: idp.authn.RemoteUserInternal [DISABLED] | ||
+ | Module: idp.authn.SPNEGO [DISABLED] | ||
+ | Module: idp.authn.X509 [DISABLED] | ||
+ | Module: idp.authn.Demo [DISABLED] | ||
+ | Module: idp.admin.Hello [ENABLED] | ||
+ | Module: idp.admin.UnlockKeys [DISABLED] | ||
+ | Module: idp.intercept.Consent [DISABLED] | ||
+ | Module: idp.intercept.ContextCheck [DISABLED] | ||
+ | Module: idp.intercept.ExpiringPassword [DISABLED] | ||
+ | Module: idp.intercept.Impersonate [DISABLED] | ||
+ | Module: idp.intercept.Warning [DISABLED] | ||
+ | Module: idp.profile.CAS [DISABLED] | ||
+ | </ | ||
+ | |||
+ | ==== activation consent ==== | ||
+ | |||
+ | activer le module de consentement : | ||
+ | * https:// | ||
+ | * https:// | ||
+ | |||
+ | < | ||
+ | [root@idpx bin]# ./module.sh -t idp.intercept.Consent || ./module.sh -e idp.intercept.Consent | ||
+ | Enabling idp.intercept.Consent... | ||
+ | conf/ | ||
+ | views/ | ||
+ | views/ | ||
+ | [OK] | ||
+ | </ | ||
+ | |||
+ | |||
+ | Depuis 4.1.x | ||
+ | |||
+ | < | ||
+ | <!-- Insert bean that references the static terms-of-use from consent-messages.properties --> | ||
+ | <bean id=" | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | ===== Upgrade ===== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | Exemple ici du passage d'une 4.1.0 en 4.1.2 | ||
+ | |||
+ | recuperer les sources | ||
+ | |||
+ | < | ||
+ | [root@idpx opt]# wget https:// | ||
+ | </ | ||
+ | |||
+ | sauver / backup de l' | ||
+ | |||
+ | < | ||
+ | [root@idpx opt]# cp -a shibboleth-idp shibboleth-idp-prod-4.1.0 | ||
+ | </ | ||
+ | |||
+ | desarchiver et se deplacer dans l' | ||
+ | |||
+ | < | ||
+ | [root@idpx opt]# tar xvfz shibboleth-identity-provider-4.1.2.tar.gz | ||
+ | [root@idpx opt]# cd shibboleth-identity-provider-4.1.2 | ||
+ | </ | ||
+ | |||
+ | Lancer l' | ||
+ | |||
+ | < | ||
+ | [root@idpx shibboleth-identity-provider-4.1.2]# | ||
+ | Buildfile: / | ||
+ | |||
+ | install: | ||
+ | Source (Distribution) Directory (press < | ||
+ | |||
+ | Installation Directory: [/ | ||
+ | |||
+ | INFO [net.shibboleth.idp.installer.V4Install: | ||
+ | INFO [net.shibboleth.idp.installer.BuildWar: | ||
+ | INFO [net.shibboleth.idp.installer.BuildWar: | ||
+ | INFO [net.shibboleth.idp.installer.BuildWar: | ||
+ | INFO [net.shibboleth.idp.installer.BuildWar: | ||
+ | |||
+ | BUILD SUCCESSFUL | ||
+ | Total time: 31 seconds | ||
+ | </ | ||
+ | |||
+ | |||
+ | rebuild du war | ||
+ | |||
+ | < | ||
+ | [root@idpx shibboleth-idp]# | ||
+ | Buildfile: / | ||
+ | |||
+ | build-war: | ||
+ | Installation Directory: [/ | ||
+ | |||
+ | INFO [net.shibboleth.idp.installer.BuildWar: | ||
+ | INFO [net.shibboleth.idp.installer.BuildWar: | ||
+ | INFO [net.shibboleth.idp.installer.BuildWar: | ||
+ | INFO [net.shibboleth.idp.installer.BuildWar: | ||
+ | |||
+ | BUILD SUCCESSFUL | ||
+ | Total time: 6 seconds | ||
+ | </ | ||
+ | |||
+ | |||
+ | puis stop/start de tomcat afin de redeployer ce nouveau war . | ||
Line 1092: | Line 1277: | ||
[root@idpx shibboleth-idp]# | [root@idpx shibboleth-idp]# | ||
</ | </ | ||
+ | |||
+ | ==== shib-cas-authn jar ==== | ||
+ | |||
+ | recuperer les deux fichier .jar | ||
+ | |||
+ | < | ||
+ | [root@idpx lib]# pwd | ||
+ | / | ||
+ | / | ||
+ | [root@idpx lib]# wget https:// | ||
+ | |||
+ | [root@idpx lib]# wget https:// | ||
+ | </ | ||
+ | |||
+ | ==== web.xml ==== | ||
+ | |||
on ajoute un element //< | on ajoute un element //< | ||
Line 1108: | Line 1309: | ||
- < | - < | ||
- < | - < | ||
- | - < | + | - < |
- </ | - </ | ||
- < | - < | ||
Line 1119: | Line 1320: | ||
</ | </ | ||
+ | :!: on a changé le < | ||
+ | ==== activer le module external ==== | ||
+ | |||
+ | si ce n'est pas deja fait, il faut activer l'usag de module " | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | < | ||
+ | [root@idpx shibboleth-idp]# | ||
+ | Enabling idp.authn.External... | ||
+ | conf/ | ||
+ | [OK] | ||
+ | </ | ||
==== parametrage idp.authn.flows=External ==== | ==== parametrage idp.authn.flows=External ==== | ||
Line 1126: | Line 1340: | ||
< | < | ||
- | [root@idp4mt shibboleth-idp]# | + | [root@idp4mt shibboleth-idp]# |
- | --- conf/authn/authn.properties 2021-06-02 22:51:41.125696958 | + | --- authn.properties.dist 2021-06-02 22:50:05.807379051 |
- | +++ conf/authn/authn.properties.dist 2021-06-02 22:50:05.807379051 | + | +++ authn.properties 2021-06-03 15:43:27.972786269 |
- | @@ -3,9 +3,6 @@ | + | @@ -3,6 +3,9 @@ |
# Regular expression matching login flows to enable, e.g. IPAddress|Password | # Regular expression matching login flows to enable, e.g. IPAddress|Password | ||
# | # | ||
- | -#begin JP | + | +#begin JP |
- | -# Regular expression matching login flows to enable, e.g. IPAddress|Password | + | +# Regular expression matching login flows to enable, e.g. IPAddress|Password |
- | -# | + | +# |
| | ||
# CAS Client properties (usage loosely matches that of the Java CAS Client) | # CAS Client properties (usage loosely matches that of the Java CAS Client) | ||
- | @@ -13,39 +10,6 @@ | + | @@ -10,6 +13, |
| | ||
| | ||
- | -## Shibboleth Server Properties | + | +## Shibboleth Server Properties |
- | -shibcas.serverName = https://ssocas6.domain.fr | + | +shibcas.serverName = https://ourIDP.domain.fr |
- | - | + | + |
- | -# By default you always get the AuthenticatedNameTranslator, | + | +# By default you always get the AuthenticatedNameTranslator, |
- | -# Takes a comma separated list of fully qualified class names | + | +# Takes a comma separated list of fully qualified class names |
- | -# shibcas.casToShibTranslators = com.your.institution.MyCustomNamedTranslatorClass | + | +# shibcas.casToShibTranslators = com.your.institution.MyCustomNamedTranslatorClass |
- | -# shibcas.parameterBuilders = com.your.institution.MyParameterBuilderClass | + | +# shibcas.parameterBuilders = com.your.institution.MyParameterBuilderClass |
- | - | + | + |
- | -# Specify CAS validator to use - either ' | + | +# Specify CAS validator to use - either ' |
- | -# shibcas.ticketValidatorName = cas30 | + | +# shibcas.ticketValidatorName = cas30 |
- | - | + | + |
- | - | + | + |
- | -# Specify if the Relying Party/ | + | +# Specify if the Relying Party/ |
- | -# or embedded in the " | + | +# or embedded in the " |
- | -# shibcas.entityIdLocation = append | + | +# shibcas.entityIdLocation = append |
- | - | + | + |
- | -# Default lifetime and timeout of various authentication methods | + | +# Default lifetime and timeout of various authentication methods |
- | -# | + | +# |
- | -# | + | +# |
- | - | + | + |
- | -# Whether to populate relying party user interface information for display | + | +# Whether to populate relying party user interface information for display |
- | -# during authentication, | + | +# during authentication, |
- | -# | + | +# |
- | - | + | + |
- | -# Whether to prioritize " | + | +# Whether to prioritize " |
- | -# one possible matching login method (V2 behavior was to favor them) | + | +# one possible matching login method (V2 behavior was to favor them) |
- | -# | + | +# |
- | - | + | + |
- | -# Whether to fail requests when a user identity after authentication | + | +# Whether to fail requests when a user identity after authentication |
- | -# doesn' | + | +# doesn' |
- | -# | + | +# |
- | -#end JP | + | +#end JP |
- | - | + | + |
# Default settings for most authentication methods. | # Default settings for most authentication methods. | ||
# | # | ||
# | # | ||
- | + | @@ -88,7 +124, | |
- | @@ -124,8 +88,7 @@ | + | |
# Unset if you plan to return full Java Subject from external source | # Unset if you plan to return full Java Subject from external source | ||
# | # | ||
# Servlet context-relative path to wherever your implementation lives | # Servlet context-relative path to wherever your implementation lives | ||
- | -#idp.authn.External.externalAuthnPath = contextRelative: | + | -idp.authn.External.externalAuthnPath = contextRelative: |
- | -idp.authn.External.externalAuthnPath = contextRelative: | + | +#idp.authn.External.externalAuthnPath = contextRelative: |
- | +idp.authn.External.externalAuthnPath = contextRelative: | + | +idp.authn.External.externalAuthnPath = contextRelative: |
</ | </ | ||
- | copie de no-conversation-state.jsp | + | copie de no-conversation-state.jsp |
< | < |