This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
docpublic:systemes:shibboleth:spv3o8 [2022/05/04 21:50] adminjp created |
docpublic:systemes:shibboleth:spv3o8 [2022/05/05 21:24] (current) adminjp [SSO] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== | ||
- | https:// | + | |
+ | ===== SP v3 os 8 ===== | ||
+ | |||
+ | Déploiement d'un Service Provider v3 sous OS type RHEL8/ | ||
+ | |||
+ | ===== Réference ===== | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | |||
+ | ===== Repo shibboleth ===== | ||
+ | |||
+ | * https:// | ||
+ | * https:// | ||
+ | |||
+ | le site de shibboleth fournit maintenant des packahe RPM (opensuse avant) | ||
+ | |||
+ | depuis le site https:// | ||
+ | |||
+ | |||
+ | < | ||
+ | [root@mutsp3 yum.repos.d]# | ||
+ | [shibboleth] | ||
+ | name=Shibboleth (CentOS_8) | ||
+ | # Please report any problems to https:// | ||
+ | type=rpm-md | ||
+ | mirrorlist=https:// | ||
+ | gpgcheck=1 | ||
+ | gpgkey=https:// | ||
+ | https:// | ||
+ | enabled=1 | ||
+ | </ | ||
+ | |||
+ | ===== yum install ===== | ||
+ | |||
+ | < | ||
+ | [root@mutsp3 yum.repos.d]# | ||
+ | |||
+ | Installé: | ||
+ | liblog4shib2-2.0.1-1.x86_64 | ||
+ | libxmltooling10-3.2.1-1.x86_64 | ||
+ | xerces-c-3.2.2-3.vl8.x86_64 | ||
+ | |||
+ | Terminé ! | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Post install ===== | ||
+ | |||
+ | ==== demarrage automatique ==== | ||
+ | |||
+ | je conseil d' | ||
+ | |||
+ | < | ||
+ | [root@musp3 ~]# systemctl start shibd.service | ||
+ | [root@musp3 ~]# systemctl status shibd.service | ||
+ | ● shibd.service - Shibboleth Service Provider Daemon | ||
+ | | ||
+ | | ||
+ | Docs: https:// | ||
+ | Main PID: 63040 (shibd) | ||
+ | Tasks: 5 (limit: 104857) | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | Ainsi que httpd restart / reload pour charger le mod_shib contenu dans / | ||
+ | |||
+ | < | ||
+ | [root@musp3 ~]# systemctl restart httpd.service | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== emplacement des fichiers de log ==== | ||
+ | |||
+ | definis dans les fichier .logger : | ||
+ | |||
+ | < | ||
+ | [root@musp3 ~]# cd / | ||
+ | [root@musp3 shibboleth]# | ||
+ | shibd.logger: | ||
+ | shibd.logger: | ||
+ | shibd.logger: | ||
+ | shibd.logger: | ||
+ | </ | ||
+ | |||
+ | ==== httpd.conf ==== | ||
+ | |||
+ | < | ||
+ | $ diff httpd.conf httpd.conf.orig | ||
+ | 275c275 | ||
+ | < UseCanonicalName On | ||
+ | --- | ||
+ | > UseCanonicalName Off | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== test Status ==== | ||
+ | |||
+ | Parametrer l'ACL dans / | ||
+ | |||
+ | < | ||
+ | <!-- Status reporting service. --> | ||
+ | <Handler type=" | ||
+ | </ | ||
+ | |||
+ | Acces: | ||
+ | |||
+ | * http:// | ||
+ | |||
+ | les metadata directement: | ||
+ | |||
+ | * http:// | ||
+ | |||
+ | |||
+ | ==== test config ==== | ||
+ | |||
+ | attention à la libCurl et openssl : | ||
+ | |||
+ | from https:// | ||
+ | |||
+ | < | ||
+ | even if the message is marked as critical, those errors can be ignored. On many RedHat/ | ||
+ | |||
+ | LD_LIBRARY_PATH=/ | ||
+ | </ | ||
+ | ===== Parametrage shibboleth2.xml ===== | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | le fichier / | ||
+ | |||
+ | ==== SSO ==== | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | |||
+ | https:// | ||
+ | |||
+ | < | ||
+ | < | ||
+ | | ||
+ | |||
+ | .. | ||
+ | < | ||
+ | <SSO | ||
+ | | ||
+ | SAML2 SAML1 | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ==== error messages ==== | ||
+ | |||
+ | < | ||
+ | |||
+ | < | ||
+ | metadata=" | ||
+ | access=" | ||
+ | ssl=" | ||
+ | localLogout=" | ||
+ | globalLogout=" | ||
+ | logoLocation="/ | ||
+ | styleSheet="/ | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | ==== Metadata ==== | ||
+ | |||
+ | < | ||
+ | <!-- Chains together all your metadata sources. --> | ||
+ | < | ||
+ | < | ||
+ | Federation IT /> | ||
+ | --> | ||
+ | < | ||
+ | backingFilePath="/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | <!-- Meta-donné de la fération de test Ãucation-Recherche --> | ||
+ | < | ||
+ | backingFilePath="/ | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | </ | ||
+ | |||
+ | autoriser l' | ||
+ | |||
+ | < | ||
+ | [root@wood shibboleth]# | ||
+ | [root@wood shibboleth]# | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Certificats de signature des metadata ==== | ||
+ | |||
+ | cf https:// | ||
+ | |||
+ | certificat Renater | ||
+ | |||
+ | < | ||
+ | [root@wood shibboleth]# | ||
+ | |||
+ | </ | ||
+ | |||
+ | ===== Multiples vhost sur un meme SP ===== | ||
+ | |||
+ | ==== references ==== | ||
+ | |||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | |||
+ | |||
+ | avant de generer une nouvelle paire de clée, il est preferable de sauvegarder la paire initiale (car le -f / force les ecrasera ) | ||
+ | |||
+ | < | ||
+ | [root@wood shibboleth]# | ||
+ | [root@wood shibboleth]# | ||
+ | </ | ||
+ | |||
+ | générer la paire de clé pour l' | ||
+ | |||
+ | < | ||
+ | [root@wood shibboleth]# | ||
+ | Generating a 2048 bit RSA private key | ||
+ | ............................................................................................+++ | ||
+ | ....................+++ | ||
+ | writing new private key to ' | ||
+ | ----- | ||
+ | |||
+ | |||
+ | [root@wood shibboleth]# | ||
+ | [root@wood shibboleth]# | ||
+ | |||
+ | [root@wood shibboleth]# | ||
+ | |||
+ | </ | ||
+ | |||
+ | déclaration de l' | ||
+ | |||
+ | < | ||
+ | ... | ||
+ | < | ||
+ | REMOTE_USER=" | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ==== metadata Application Override / vhost ==== | ||
+ | |||
+ | pour que ce SP hebergé sur cette instance mutualisée de shibd soit identifiable de maniere independante dans la fédération d' | ||
+ | |||
+ | < | ||
+ | [root@shib-ds-wayf ~]# wget https:// | ||
+ | </ |