Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docpublic:systemes:cms:drupalsitefedeid [2017/05/04 16:47]
procacci@tem-tsp.eu [configuration drupal 8]
docpublic:systemes:cms:drupalsitefedeid [2019/08/10 12:08] (current)
procacci@tem-tsp.eu [installation module simpleSAML drupal 8]
Line 133: Line 133:
 </code> </code>
  
-il faut alors aller sur  http://drup.domain.fr/drup/drupal/din/ pour installer le sous-sites "din"+il faut alors aller sur  http://drup.domain.fr/drup/drupal/din/ pour installer le sous-sites "din" et en admin ForUnivPSaccesadminpoint pour l'adminisrarer
 ===== conf apache ===== ===== conf apache =====
  
Line 245: Line 245:
 </code> </code>
  
-informations a retenir quand on lancera l'installation des sites via l'interface web drupal (drupcore database alias Drupal UPS core avec WanpassDrupCoreUserPoint) .+informations a retenir quand on lancera l'installation des sites via l'interface web drupal (drupcore database alias Drupal UPS (Dups In et Ex)  core avec WanpassDrupCoreUserfullPoint) .
  .  .
  
Line 346: Line 346:
   * https://dev.acquia.com/blog/drupal-8-module-of-the-week/drupal-8-module-of-the-week-simplesamlphp-authentication/05/04/2016/10246   * https://dev.acquia.com/blog/drupal-8-module-of-the-week/drupal-8-module-of-the-week-simplesamlphp-authentication/05/04/2016/10246
  
 +
 +===== Session memcached ====
 +
 +phpsession non recommandé, pb avec sqlite, finalement usage de memcached 
 +
 +install sur centos : 
 +https://www.tecmint.com/install-memcached-on-centos-7/
 +
 +<code>
 +[root@mut config]# yum install memcached
 +[root@mut config]# yum install libmemcached
 +
 +[root@mut config]# yum install php-memcache
 +
 +[root@mut config]# grep 127 /etc/sysconfig/memcached
 +OPTIONS="-l 127.0.0.1 -U 0"
 +[root@mut config]# systemctl restart memcached
 +[root@mut config]# systemctl enable memcached
 +</code>
 +
 +
 +
 +
 +=== config.php ===
 +
 +<code>
 + 'store.type'                    => 'memcache',
 +
 +'memcache_store.servers' => [
 +        [
 +            ['hostname' => 'localhost'],
 +        ],
 +    ],
 +
 + 'memcache_store.prefix' => 'simpleSAMLphp',
 +'memcache_store.expires' => 36 * (60 * 60), // 36 hours.
 +</code>
  
 ===== Session SQL ==== ===== Session SQL ====
 +
 +
 +:!: galere avec sqlite , finalement usage de memcached  ci-dessus :!:
 +
  
 <code> <code>
Line 355: Line 396:
     'store.type'                    => 'sql',     'store.type'                    => 'sql',
 /*'store.sql.dsn'                 => 'sqlite:/path/to/sqlitedatabase.sq3',*/ /*'store.sql.dsn'                 => 'sqlite:/path/to/sqlitedatabase.sq3',*/
-    'store.sql.dsn'                 => 'sqlite:/var/www/drup/sqlitedb-dupsaml.sq3',+    'store.sql.dsn'                 => 'sqlite:/var/www/dip/simplesaml/sqlitedb-dipsaml.sq3', 
  
 </code> </code>
Line 362: Line 404:
  
 <code> <code>
-# ls -al /var/www/dup/sqlitedb-dupsaml.sq3  +[root@mut config]# ls -ltr /var/www/dip/simplesaml/sqlitedb-dipsaml.sq3  
--rw-r----- 1 apache apache 8192 28 avril 17:10 /var/www/drups/sqlitedb-dupssaml.sq3+-rw-r--r-- 1 apache apache 10240 10 août  11:16 /var/www/dip/simplesaml/sqlitedb-dipsaml.sq3
 </code> </code>
  
 +ave les droits d'acces en ecriture a apache sur la racine 
  
 +<code>
 +[root@mut config]# chown root:apache /var/www/dip/simplesaml/
 +[root@mut config]# chmod 775 /var/www/dip/simplesaml/
 +</code>
  
 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'interface web , detaiuls, cf https://wiki.aai.niif.hu/index.php?title=DrupalShibbolethReadmeDev activation et parameterage du module via l'interface web , detaiuls, cf https://wiki.aai.niif.hu/index.php?title=DrupalShibbolethReadmeDev
  
 +==== installation module simpleSAML drupal 8 ====
  
 +<code>
 +[root@mut tmp]# wget https://ftp.drupal.org/files/projects/simplesamlphp_auth-8.x-3.1.tar.gz
  
 +[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 /tmp/simplesamlphp_auth-8.x-3.1.tar.gz 
 +simplesamlphp_auth/
 +simplesamlphp_auth/README.md
 +</code>
 +
 +attention apres telechargement et deploiement, la page module/extention affiche que des dependances sont manquantes (module grisé) 
 +
 +<code>
 +
 +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)
 +
 +</code>
 +
 +=== externalauth ===
 +
 +<code>
 +[root@mut tmp]# wget https://ftp.drupal.org/files/projects/externalauth-8.x-1.1.tar.gz
 +Sauvegarde en : «externalauth-8.x-1.1.tar.gz»
 +
 +100%[============================================================================================================>] 16 758      --.-K/  ds 0,002s  
 +
 +2019-08-10 13:42:31 (8,61 MB/s) - «externalauth-8.x-1.1.tar.gz» sauvegardé [16758/16758]
 +
 +[root@mut tmp]# cd - 
 +/var/www/dip/dupc/modules/contrib
 +[root@mut contrib]# tar xvfz /tmp/externalauth-8.x-1.1.tar.gz 
 +externalauth/
 +externalauth/README.txt
 +externalauth/externalauth.info.yml
 +</code>
 +
 +sur https://dip.ip-paris.net/dupc/admin/modules => installer externalauth
 +
 +<code>
 +    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.
 +</code>
 +
 +puis "installer" le module SimpleSAMLphp Authentication
 +
 +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 ...) 
 +
 +<code>
 +root@mut dupc]# grep simplesaml sites/default/settings.php
 +$settings['simplesamlphp_dir'] = '/var/www/dip/simplesaml';
 +</code>
 +
 +on relance l'install :
 +
 +<code>
 +The SimpleSAMLphp Authentication module disabled the user registration. You can manually enable it again in the Account settings.
 +Message d'état
 +
 +    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.
 +</code>
 +
 +puis configuration de l'auth simpleSAMLphp 
 +
 +https://dip.ip-paris.net/dupc/admin/config/people/simplesamlphp_auth
 +
 +==== installation module drupal 8 old ====
 +
 +encore en candidate release en Mai 2017 :
 +https://www.drupal.org/node/2622724
 +
 +dans l'installer web de module http://drup.domain.fr/drup/drupal/admin/modules/install on met le lien vers la RC2 de ce module https://ftp.drupal.org/files/projects/simplesamlphp_auth-8.x-3.0-rc2.tar.gz
 +
 +<code>
 +[root@wood drupal]# chown apache modules/
 +</code>
 +
 +attention apres telechargement et deploiement, la page module/extention affiche que des dependances sont manquantes (module grisé) 
 +
 +<code>
 +
 +SimpleSAMLphp Authentication
 +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.0-rc2
 +Requiert : UserSystemExternalauth (manquant)
 +</code>
 +
 +installation de https://www.drupal.org/project/externalauth
 +
 +<code>
 +
 +External Authentication
 +Helper module to authenticate users using an external site / service and storing identification details
 +Nom système : externalauth
 +Version : 8.x-1.0
 +Requis par : SimpleSAMLphp Authentication (désactivé)
 +</code>
 +
 +apres activation de ces 2 modules on reçoit cette alerte
 +
 +<code>
 +RedCross: SimpleSAMLphp module requires the simplesamlphp library. See README file for installation instructions.
 +
 +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.
 +</code>
 +
 +il faut positioner le chamin de notre installation simplesamlphp en dur dans le fichier settings.php de notre site (ou utiliser composer ...) 
 +
 +<code>
 +# grep simplesamlphp sites/default/settings.php
 + $settings['simplesamlphp_dir'] = '/var/www/drup/simplesaml';
 +
 +Le module SimpleSAMLphp Authentication a été activé.
 +</code>
 +
 +
 +===== drush =====
 +
 +http://www.drupalfacile.org/question/comment-installer-drush-8-pour-drupal-8
 +
 +<code>
 +# wget https://github.com/drush-ops/drush/releases/download/8.1.11/drush.phar
 +# cp drush.phar /usr/local/bin/drush
 +</code>
 +
 +il faut executer drush depuis le repertoire web où est installé drupal, sinon :
 +
 +<code>
 +#  /usr/local/bin/drush en securelogin
 +Command pm-enable needs a higher bootstrap level to run - you will need to invoke drush from a more functional Drupal    [error]
 +environment to run this command.
 +The drush command 'en securelogin' could not be executed.                                                                [error]
 +
 +</code>
 +cf https://drupal.stackexchange.com/questions/146668/command-pm-enable-needs-a-higher-bootstrap-level-to-run
 +
 +ici on install et enable un module qui force le login en https
 +
 +<code>
 +[root@bois drupal]#  /usr/local/bin/drush en securelogin
 +securelogin was not found.                                                                                               [warning]
 +The following projects provide some or all of the extensions not found:                                                  [ok]
 +securelogin
 +Would you like to download them? (y/n): y
 +Project securelogin (8.x-1.4) downloaded to /var/www/drup/drupal-8.3.1/modules/securelogin.                        [success]
 +The following extensions will be enabled: securelogin
 +Do you really want to continue? (y/n): y
 +securelogin was enabled successfully.                      
 +</code>
  
docpublic/systemes/cms/drupalsitefedeid.1493916452.txt.gz · Last modified: 2017/05/04 16:47 by procacci@tem-tsp.eu
[unknown link type]Back to top
CC Attribution-Noncommercial-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0