tuto:webapps:llng:jappix

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
tuto:webapps:llng:jappix [13/07/2012 13:35]
dani créée
tuto:webapps:llng:jappix [21/09/2013 12:27] (Version actuelle)
dani [Configurer votre serveur Jabber pour qu'il utilise une authentification CAS]
Ligne 10: Ligne 10:
 Ensuite, il faut appliquer un patch à Jappix pour qu'il puisse utiliser une authentification CAS. Ensuite, il faut appliquer un patch à Jappix pour qu'il puisse utiliser une authentification CAS.
  
-<file auth_cas.patch diff>+<file diff auth_cas.patch>
 diff -Nur -x '*.orig' -x '*.rej' jappix/php/desktop.php mezzanine_patched_jappix/php/desktop.php diff -Nur -x '*.orig' -x '*.rej' jappix/php/desktop.php mezzanine_patched_jappix/php/desktop.php
---- jappix/php/desktop.php      2011-08-28 15:59:58.000000000 +0200 +--- jappix/php/desktop.php      2012-01-16 22:51:37.000000000 +0100 
-+++ mezzanine_patched_jappix/php/desktop.php    2011-12-20 15:37:10.000000000 +0100 ++++ mezzanine_patched_jappix/php/desktop.php    2012-07-13 14:23:02.625826144 +0200 
-@@ -16,6 +16,30 @@+@@ -16,6 +16,31 @@
  // Someone is trying to hack us?  // Someone is trying to hack us?
  if(!defined('JAPPIX_BASE'))  if(!defined('JAPPIX_BASE'))
         exit;         exit;
 +if (AUTH_CAS == 'on'){ +if (AUTH_CAS == 'on'){
 ++    ini_set('include_path', ini_get('include_path').PATH_SEPARATOR.'/usr/share/pear');
 +    require_once('CAS.php'); +    require_once('CAS.php');
 +    if (DEVELOPER == 'on'){ +    if (DEVELOPER == 'on'){
Ligne 24: Ligne 25:
 +    } +    }
 +    phpCAS::proxy(CAS_VERSION_2_0,CAS_SERVER,443,CAS_URI); +    phpCAS::proxy(CAS_VERSION_2_0,CAS_SERVER,443,CAS_URI);
-+    phpCAS::setPGTStorageFile('plain',session_save_path());++    phpCAS::setPGTStorageFile(session_save_path());
 +    if (CAS_CACERT != '' && file_exists (CAS_CACERT)){ +    if (CAS_CACERT != '' && file_exists (CAS_CACERT)){
 +        phpCAS::setCasServerCACert(CAS_CACERT); +        phpCAS::setCasServerCACert(CAS_CACERT);
Ligne 45: Ligne 46:
  ?>  ?>
  <!DOCTYPE html>  <!DOCTYPE html>
-@@ -40,7 +64,7 @@+@@ -40,7 +65,7 @@
         } ?>         } ?>
  </head>  </head>
Ligne 53: Ligne 54:
  
  <?php  <?php
 +
 diff -Nur -x '*.orig' -x '*.rej' jappix/php/read-main.php mezzanine_patched_jappix/php/read-main.php diff -Nur -x '*.orig' -x '*.rej' jappix/php/read-main.php mezzanine_patched_jappix/php/read-main.php
---- jappix/php/read-main.php    2011-08-28 15:59:58.000000000 +0200 +--- jappix/php/read-main.php    2012-01-16 22:51:37.000000000 +0100 
-+++ mezzanine_patched_jappix/php/read-main.php  2011-12-20 15:38:53.000000000 +0100++++ mezzanine_patched_jappix/php/read-main.php  2012-07-13 14:21:44.472679462 +0200
 @@ -33,7 +33,11 @@ @@ -33,7 +33,11 @@
                 'https_force'           => 'off',                 'https_force'           => 'off',
Ligne 81: Ligne 83:
  ?>  ?>
  
-</code>+</file>
  
 <note tip>Ce patch est une adaptation de ce qui est expliqué ici: http://mdl29.net/doku.php?id=braveo:docinstall:cas:jappix je n'en suis donc pas l'auteur d'origine, j'ai juste changé 2/3 trucs, dont la possibilité de valider le certificat du serveur CAS, ce qui me parait important</note> <note tip>Ce patch est une adaptation de ce qui est expliqué ici: http://mdl29.net/doku.php?id=braveo:docinstall:cas:jappix je n'en suis donc pas l'auteur d'origine, j'ai juste changé 2/3 trucs, dont la possibilité de valider le certificat du serveur CAS, ce qui me parait important</note>
Ligne 125: Ligne 127:
  
  
-Pour les systèmes CentOS 5 et 6 ou compatibles, nous avons une version packagées en rpm de pam_cas sur notre [[http://repo.firewall-services.com/centos/dépôt]]+Pour les systèmes CentOS 5 et 6 ou compatibles, nous avons une version packagées en rpm de pam_cas sur notre [[http://repo.firewall-services.com/centos/|dépôt]]
  • tuto/webapps/llng/jappix.1342179328.txt.gz
  • Dernière modification: 13/07/2012 13:35
  • de dani