This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
docpublic:systemes:cms:drupalsitefedeid [2017/05/21 10:18] procacci@tem-tsp.eu [installation module drupal 8] |
docpublic:systemes:cms:drupalsitefedeid [2019/08/10 12:08] (current) procacci@tem-tsp.eu [installation module simpleSAML drupal 8] |
||
|---|---|---|---|
| Line 346: | Line 346: | ||
| * https:// | * https:// | ||
| + | |||
| + | ===== Session memcached ==== | ||
| + | |||
| + | phpsession non recommandé, | ||
| + | |||
| + | install sur centos : | ||
| + | https:// | ||
| + | |||
| + | < | ||
| + | [root@mut config]# yum install memcached | ||
| + | [root@mut config]# yum install libmemcached | ||
| + | |||
| + | [root@mut config]# yum install php-memcache | ||
| + | |||
| + | [root@mut config]# grep 127 / | ||
| + | OPTIONS=" | ||
| + | [root@mut config]# systemctl restart memcached | ||
| + | [root@mut config]# systemctl enable memcached | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | === config.php === | ||
| + | |||
| + | < | ||
| + | ' | ||
| + | |||
| + | ' | ||
| + | [ | ||
| + | [' | ||
| + | ], | ||
| + | ], | ||
| + | |||
| + | ' | ||
| + | ' | ||
| + | </ | ||
| ===== Session SQL ==== | ===== Session SQL ==== | ||
| + | |||
| + | |||
| + | :!: galere avec sqlite , finalement usage de memcached | ||
| + | |||
| < | < | ||
| Line 355: | Line 396: | ||
| ' | ' | ||
| / | / | ||
| - | ' | + | ' |
| </ | </ | ||
| Line 362: | Line 404: | ||
| < | < | ||
| - | # ls -al /var/www/dup/sqlitedb-dupsaml.sq3 | + | [root@mut config]# ls -ltr /var/www/dip/ |
| - | -rw-r----- 1 apache apache | + | -rw-r--r-- 1 apache apache |
| </ | </ | ||
| + | ave les droits d' | ||
| + | < | ||
| + | [root@mut config]# chown root:apache / | ||
| + | [root@mut config]# chmod 775 / | ||
| + | </ | ||
| en v7.X nous faisions usage du module drupal shib_auth qui permet une authentification shibboleth, mais aussi une affectation de role basé sur attributs shibboleth . | en v7.X nous faisions usage du module drupal shib_auth qui permet une authentification shibboleth, mais aussi une affectation de role basé sur attributs shibboleth . | ||
| Line 377: | Line 424: | ||
| activation et parameterage du module via l' | activation et parameterage du module via l' | ||
| - | ==== installation module drupal 8 ==== | + | ==== installation module |
| + | |||
| + | < | ||
| + | [root@mut tmp]# wget https:// | ||
| + | |||
| + | [root@mut dupc]# cd modules/ | ||
| + | [root@mut modules]# ls | ||
| + | README.txt | ||
| + | [root@mut modules]# less README.txt | ||
| + | [root@mut modules]# mkdir contrib | ||
| + | [root@mut modules]# cd contrib/ | ||
| + | [root@mut contrib]# tar xvfz / | ||
| + | simplesamlphp_auth/ | ||
| + | simplesamlphp_auth/ | ||
| + | </ | ||
| + | |||
| + | attention apres telechargement et deploiement, | ||
| + | |||
| + | < | ||
| + | |||
| + | Allows users to authenticate to a remote SAML identity provider (IdP) via a locally configured SimpleSAMLphp service point (SP). | ||
| + | Nom système : simplesamlphp_auth | ||
| + | Version : 8.x-3.1 | ||
| + | Requiert : | ||
| + | |||
| + | UserSystemExternalauth (manquant) | ||
| + | |||
| + | </ | ||
| + | |||
| + | === externalauth === | ||
| + | |||
| + | < | ||
| + | [root@mut tmp]# wget https:// | ||
| + | Sauvegarde en : «externalauth-8.x-1.1.tar.gz» | ||
| + | |||
| + | 100%[============================================================================================================> | ||
| + | |||
| + | 2019-08-10 13:42:31 (8,61 MB/s) - «externalauth-8.x-1.1.tar.gz» sauvegardé [16758/ | ||
| + | |||
| + | [root@mut tmp]# cd - | ||
| + | / | ||
| + | [root@mut contrib]# tar xvfz / | ||
| + | externalauth/ | ||
| + | externalauth/ | ||
| + | externalauth/ | ||
| + | </ | ||
| + | |||
| + | sur https:// | ||
| + | |||
| + | < | ||
| + | Le module External Authentication a été activé. | ||
| + | 1 fichier de traduction importé. 0 traductions ont été ajoutées, 3 traductions ont été mises à jour et 0 traductions ont été supprimées. | ||
| + | </ | ||
| + | |||
| + | puis " | ||
| + | |||
| + | SimpleSAMLphp module requires the simplesamlphp library, version 1.17.2 or later. See README file for installation instructions. | ||
| + | |||
| + | => il faut positioner le chemin de notre installation simplesamlphp en dur dans le fichier settings.php de notre site (ou utiliser composer ...) | ||
| + | |||
| + | < | ||
| + | root@mut dupc]# grep simplesaml sites/ | ||
| + | $settings[' | ||
| + | </ | ||
| + | |||
| + | on relance l' | ||
| + | |||
| + | < | ||
| + | The SimpleSAMLphp Authentication module disabled the user registration. You can manually enable it again in the Account settings. | ||
| + | Message d' | ||
| + | |||
| + | Le module SimpleSAMLphp Authentication a été activé. | ||
| + | 1 fichier de traduction importé. 1 traductions ont été ajoutées, 5 traductions ont été mises à jour et 0 traductions ont été supprimées. | ||
| + | </ | ||
| + | |||
| + | puis configuration de l'auth simpleSAMLphp | ||
| + | |||
| + | https:// | ||
| + | |||
| + | ==== installation module drupal 8 old ==== | ||
| encore en candidate release en Mai 2017 : | encore en candidate release en Mai 2017 : | ||
| Line 417: | Line 543: | ||
| GreenCheck: Le module External Authentication a été activé. | GreenCheck: Le module External Authentication a été activé. | ||
| Un fichier de traduction importé. 0 traductions ont été ajoutées, 2 traductions ont été mises à jour et 0 traductions ont été supprimées. | Un fichier de traduction importé. 0 traductions ont été ajoutées, 2 traductions ont été mises à jour et 0 traductions ont été supprimées. | ||
| + | </ | ||
| + | |||
| + | il faut positioner le chamin de notre installation simplesamlphp en dur dans le fichier settings.php de notre site (ou utiliser composer ...) | ||
| + | |||
| + | < | ||
| + | # grep simplesamlphp sites/ | ||
| + | | ||
| + | |||
| + | Le module SimpleSAMLphp Authentication a été activé. | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== drush ===== | ||
| + | |||
| + | http:// | ||
| + | |||
| + | < | ||
| + | # wget https:// | ||
| + | # cp drush.phar / | ||
| + | </ | ||
| + | |||
| + | il faut executer drush depuis le repertoire web où est installé drupal, sinon : | ||
| + | |||
| + | < | ||
| + | # / | ||
| + | Command pm-enable needs a higher bootstrap level to run - you will need to invoke drush from a more functional Drupal | ||
| + | environment to run this command. | ||
| + | The drush command 'en securelogin' | ||
| + | |||
| + | </ | ||
| + | cf https:// | ||
| + | |||
| + | ici on install et enable un module qui force le login en https | ||
| + | |||
| + | < | ||
| + | [root@bois drupal]# | ||
| + | securelogin was not found. | ||
| + | The following projects provide some or all of the extensions not found: | ||
| + | securelogin | ||
| + | Would you like to download them? (y/n): y | ||
| + | Project securelogin (8.x-1.4) downloaded to / | ||
| + | The following extensions will be enabled: securelogin | ||
| + | Do you really want to continue? (y/n): y | ||
| + | securelogin was enabled successfully. | ||
| </ | </ | ||