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:wiki:installconfdokuwiki [2022/05/23 17:15]
adminjp [Dokuwiki]
docpublic:systemes:wiki:installconfdokuwiki [2023/03/22 09:23] (current)
adminjp [sidebar]
Line 13: Line 13:
  
 <code> <code>
 +[root@mt wik]# wget https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz
 +[root@mt wik]# mv dokuwiki-stable.tgz dokuwiki-stable_2020-07-29_Hogfather.tgz
 +
 [root@mt wiki]# tar xvfz  dokuwiki-stable_2020-07-29_Hogfather.tgz [root@mt wiki]# tar xvfz  dokuwiki-stable_2020-07-29_Hogfather.tgz
 [root@mt wiki]# mv dokuwiki-2020-07-29 wik [root@mt wiki]# mv dokuwiki-2020-07-29 wik
Line 76: Line 79:
 </code>  </code> 
  
-ensuite le plugin fonctionne +CE patch semble maintenant integré suite au PR . 
 + 
 +==== patch shib php8 ==== 
 + 
 +un autre patch "maison" a été fait pour supporter php 8 afin de ressoudre cette erreur 
 + 
 +<code> 
 +dokuwiki\Exception\FatalException: Declaration of auth_plugin_authshibboleth::trustExternal() must be compatible with dokuwiki\Extension\AuthPlugin::trustExternal($user, $pass, $sticky = false) 
 +</code> 
 + 
 +il suffit d'ajouter/declarer les parametres attendus comme indiqués dans authshibboleth/auth.php 
 + 
 +<code> 
 +  * @see DokuWiki_Auth_Plugin::trustExternal() 
 +     */ 
 +    //public function trustExternal() 
 +   public function trustExternal($user, $pass, $sticky = false) 
 +</code> 
 + 
 +==== patch multi auth-chained ==== 
 + 
 +autre besoin, gerer le multi-authentification => local (compte local docuwiki ) et federation ID shibboleth  
 + 
 +<code> 
 +[root@wiki authshibboleth]# diff action.php.bak action.php 
 +50c50,51 
 +<         if ('login' == $ACT && !array_key_exists('auth', $_SESSION[DOKU_COOKIE])) { 
 +--- 
 +> if ('login' == $ACT && !isset($_SESSION[DOKU_COOKIE]['auth']['user'])) { 
 +>  
 +</code> 
 +==== patch Logout ==== 
 + 
 +Dokuwiki redirige vers do=login, l'auth shibboleth se redéclenche immédiatement, pour contourner ce problème il faut patcher Logout.php pour retourner sur la page principal et pas sur la page de login 
 + 
 +<code> 
 +Action]# diff Logout.php.bak Logout.php 
 +47c47 
 +<         send_redirect(wl($ID, array('do' => 'login'), true, '&')); 
 +--- 
 +>         send_redirect(wl($ID, array(), true, '&')); 
 +</code> 
 + 
 +==== custom Login page ==== 
 + 
 +pour customiser le bouton login de la navbar en y faisant apparaitre l'auth Shib/fédé-ID, il faut editer le fichier lib/tpl/bootstrap3/tpl/navbar.php 
 + 
 +pour le formulaire de login, c'est dans inc/Ui/Login.php 
 + 
 + 
 + 
 + 
 + 
 +===== post-upgrade 2022-07-igor ==== 
 + 
 +==== plugins ==== 
 + 
 +==== indexmenu ==== 
 + 
 + 
 +https://www.dokuwiki.org/plugin:indexmenu 
 + 
 +==== authshib ==== 
 + 
 +https://github.com/ivan-novakov/dokuwiki-shibboleth-auth/archive/refs/heads/master.zip 
 + 
 ++ astuce authshib dans action.php 
 + 
 +<code> 
 +//public function register(Doku_Event_Handler &$controller) 
 +    public function register(Doku_Event_Handler $controller) 
 +</code> 
 + 
 +==== sidebar ==== 
 + 
 +conf/local.php pour la sidebar 
 + 
 +<code> 
 +// jehan upgrade igor 2023-01 sidebar 
 +$conf['defer_js'] = 0; 
 +</code>
  
 +==== bootstrap 3 themes ====
  
 +https://doc.ubuntu-fr.org/utilisateurs/fabux/emeht
 ==== reference 2013 ==== ==== reference 2013 ====
  
docpublic/systemes/wiki/installconfdokuwiki.1653326137.txt.gz · Last modified: 2022/05/23 17:15 by adminjp
[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