Ejemplo n.º 1
0
 /**
  * Call to the CAS layer.
  * @todo Try to understand how it REALLY works, and clean it
  */
 function auth_cas_init()
 {
     static $s_initialized = false;
     if (!$s_initialized) {
         // phpCAS::setDebug();
         ## These should be set in config_inc.php
         ## $g_login_method = CAS_AUTH;
         $t_server_version = '2.0';
         $t_server_cas_server = 'sgsilxssop.saint-gobain.com';
         $t_server_port = 443;
         $t_server_uri = '/cas';
         $t_start_session = (bool) FALSE;
         phpCAS::client($t_server_version, $t_server_cas_server, $t_server_port, $t_server_uri, $t_start_session);
         phpCAS::setEncodingUrl(true);
         $s_initialized = true;
     }
 }