Removed auto-login feature from CAS support

git-svn-id: https://rosehill.googlecode.com/svn/trunk@69 100bd78a-fc82-11de-b5bc-ffd2847a4b57
This commit is contained in:
inghamn 2010-04-06 19:31:43 +00:00
parent e96b604573
commit 3e0834e489
2 changed files with 0 additions and 17 deletions

View File

@ -126,22 +126,6 @@ if (!defined('STDIN')) {
define('CAS','/var/www/libraries/SimpleCAS');
define('CAS_SERVER','cas.somewhere.org');
define('CAS_URI','cas');
define('CAS_COOKIE','cas_session');
define('CAS_DOMAIN','.localhost');
if (session_id()) {
if (!isset($_SESSION['USER']) && isset($_COOKIE[CAS_COOKIE])) {
require_once CAS.'/SimpleCAS/Autoload.php';
$options = array('hostname'=>CAS_SERVER,'uri'=>CAS_URI);
$protocol = new SimpleCAS_Protocol_Version2($options);
$client = SimpleCAS::client($protocol);
$client->forceAuthentication();
if ($client->isAuthenticated()) {
$user = new User($client->getUsername());
$user->startNewSession();
}
}
}
/**
* Load the Zend_Acl

View File

@ -20,7 +20,6 @@ if ($client->isAuthenticated()) {
try {
$user = new User($client->getUsername());
$user->startNewSession();
setcookie(CAS_COOKIE,'true',0,'/',CAS_DOMAIN);
if (isset($_SESSION['return_url'])) {
header('Location: '.$_SESSION['return_url']);