[Fusionforge-commits] r15802 - in trunk/src/plugins/authcas: . include

Olivier Berger olberger at fusionforge.org
Fri Jun 15 17:46:26 CEST 2012


Author: olberger
Date: 2012-06-15 17:46:25 +0200 (Fri, 15 Jun 2012)
New Revision: 15802

Modified:
   trunk/src/plugins/authcas/README
   trunk/src/plugins/authcas/include/AuthCASPlugin.class.php
Log:
More hints in case of problems and adding a way to easily activate phpCAS logs

Modified: trunk/src/plugins/authcas/README
===================================================================
--- trunk/src/plugins/authcas/README	2012-06-15 12:53:39 UTC (rev 15801)
+++ trunk/src/plugins/authcas/README	2012-06-15 15:46:25 UTC (rev 15802)
@@ -27,12 +27,21 @@
 (which means you can't add someone to a group before his/her first
 login).
 
- -- Olivier Berger <obergix at debian.org>, Thu, 14 Jun 2012 14:17:31 +0200
+In case of trouble integrating with your CAS server, it is recommended
+to uncomment the phpCAS::setDebug() line in the plugin's
+post-login.php script, and check the phpCAS logs in /tmp.
 
+Don't forget to check that the example_simple.php shipped with your
+the phpCAS library works for your server with the corresponding
+settings (compare the post-login.php code with the one in
+simple_example.php, check the /tmp logs with setDebug on, etc.).
+
+ -- Olivier Berger <obergix at debian.org>, Fri, 15 Jun 2012 17:45:23 +0200
+
 External requirement:
 
 * phpCAS from https://wiki.jasig.org/display/CASC/phpCAS
-	Tested with 1.2.0
+	Tested with 1.3.1
 
 Local Variables:
 mode: readme-debian

Modified: trunk/src/plugins/authcas/include/AuthCASPlugin.class.php
===================================================================
--- trunk/src/plugins/authcas/include/AuthCASPlugin.class.php	2012-06-15 12:53:39 UTC (rev 15801)
+++ trunk/src/plugins/authcas/include/AuthCASPlugin.class.php	2012-06-15 15:46:25 UTC (rev 15802)
@@ -53,6 +53,9 @@
 			return;
 		}
 
+		// Uncomment this to activate phpCAS logs in /tmp
+		//phpCAS::setDebug();
+
 		phpCAS::client(forge_get_config('cas_version', $this->name),
 			       forge_get_config('cas_server', $this->name),
 			       intval(forge_get_config('cas_port', $this->name)),




More information about the Fusionforge-commits mailing list