cn:ccr:aai:howto:rl9saml
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| cn:ccr:aai:howto:rl9saml [2024/06/03 12:41] – monducci@infn.it | cn:ccr:aai:howto:rl9saml [2024/12/09 12:44] (current) – [Metadati da inviare] monducci@infn.it | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== RHEL 9: Configurare un Service Provider SAML 2.0 ====== | ||
| + | |||
| + | Work in progress | ||
| + | aggiornamento delle istruzioni RHEL 7 \\ | ||
| + | https:// | ||
| + | |||
| + | |||
| + | ===== Shibboleth ===== | ||
| + | ==== Installazione ==== | ||
| + | Scaricare il repository per shibboleth collegandosi qui: \\ | ||
| + | https:// | ||
| + | e selezionando Rocky Linux 9 | ||
| + | |||
| + | < | ||
| + | cat / | ||
| + | |||
| + | [shibboleth] | ||
| + | name=Shibboleth (rockylinux9) | ||
| + | # Please report any problems to https:// | ||
| + | type=rpm-md | ||
| + | mirrorlist=https:// | ||
| + | gpgcheck=1 | ||
| + | gpgkey=https:// | ||
| + | https:// | ||
| + | enabled=1 | ||
| + | |||
| + | </ | ||
| + | |||
| + | Installare i pacchetti: | ||
| + | epel-release, | ||
| + | |||
| + | Installare shibboleth | ||
| + | |||
| + | dnf install shibboleth.x86_64 | ||
| + | |||
| + | ==== Configurazione ==== | ||
| + | Modificare il file: ''/ | ||
| + | |||
| + | * Sostituire tutte le occorrenze di '' | ||
| + | * Sostituire tutte le occorrenze di '' | ||
| + | * Sostituire '' | ||
| + | * Impostare '' | ||
| + | * Prima del tag ''< | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | * Scaricare i metadati dell' | ||
| + | == IdP di Produzione == | ||
| + | # curl -o / | ||
| + | |||
| + | == IdP di Test == | ||
| + | # curl -o / | ||
| + | |||
| + | * Configurare il mapping degli attributi. Scaricate il file già pronto: | ||
| + | |||
| + | # curl -o / | ||
| + | |||
| + | * Far (ri)partire i servizi | ||
| + | |||
| + | # systemctl restart httpd | ||
| + | # systemctl restart shibd | ||
| + | |||
| + | ==== Metadati da inviare ==== | ||
| + | |||
| + | Per scaricare i metadati da inviare, collegarsi qui | ||
| + | |||
| + | https:// | ||
| + | |||
| + | |||
| + | Attenzione con le SELinux abilitate si potrebbe avere la seguente segnalazione: | ||
| + | Metadata Request Failed | ||
| + | Mettere, temporaneamente le SELinux in permissive | ||
| + | setenforce | ||
| + | |||
| + | Collegarsi qui: https:// | ||
| + | |||
| + | Dopo aver ricevuto il mail dell' | ||
| + | Per testare la configurazione, | ||
| + | |||
| + | mkdir / | ||
| + | echo "<? | ||
| + | | ||
| + | Invocare lo script all' | ||
| + | | ||
| + | https:// | ||
| + | | ||
| + | Gli attributi dell' | ||
| + | |||
| + | Per effettuare il logout utilizzare l' | ||
| + | |||
| + | https:// | ||
| + | |||
| + | La configurazione del modulo shibboleth di apache si trova nel file ''/ | ||
| + | |||
| + | In caso si utilizzino CMS, in particolare Joomla, si presti attenzione alle regole di riscrittura presenti nel file '' | ||
| + | |||
| + | RewriteCond %{REQUEST_URI} !^/ | ||
| + | RewriteCond %{REQUEST_FILENAME} !-f | ||
| + | RewriteCond %{REQUEST_FILENAME} !-d | ||
| + | RewriteCond %{REQUEST_URI} !^/ | ||
| + | RewriteCond %{REQUEST_URI} !^/ | ||
| + | RewriteRule .* index.php [L] | ||
