diff --git a/admin/index.php b/admin/index.php index a722e1e..998bab7 100644 --- a/admin/index.php +++ b/admin/index.php @@ -9,7 +9,8 @@ phpCAS::client(CAS_VERSION_2_0, "cas.insa-toulouse.fr", 443, 'cas', true); // For production use set the CA certificate that is the issuer of the cert // on the CAS server and uncomment the line below -// phpCAS::setCasServerCACert($cas_server_ca_cert_path); +//phpCAS::setCasServerCACert($cas_server_ca_cert_path); +phpCAS::setNoCasServerValidation(); // force CAS authentication phpCAS::forceAuthentication(); diff --git a/photos.php b/photos.php index 108231d..97a5fb5 100644 --- a/photos.php +++ b/photos.php @@ -251,7 +251,12 @@ function generatePath($path) //CAS require_once("phpCAS-1.3.6/CAS.php"); + phpCAS::client(CAS_VERSION_2_0, "cas.insa-toulouse.fr", 443, 'cas', true); + +phpCAS::setNoCasServerValidation(); +// phpCAS::setCasServerCACert($cas_server_ca_cert_path); + phpCAS::forceAuthentication(); if (isset($_REQUEST['logout'])) { phpCAS::logout();