Permalink
Browse files

*** empty log message ***

  • Loading branch information...
jgutierr25
jgutierr25 committed Jul 17, 2007
1 parent 43a8efa commit 1110888aeed02035fc67e15e22ae5be92f20cb73
Showing with 418 additions and 35 deletions.
  1. +4 −5 auth/cas/auth.php
  2. +0 −12 auth/cas/cas_form.html
  3. +1 −1 auth/cas/cas_ldap_sync_users.php
  4. +413 −17 auth/cas/config.html
View
@@ -57,7 +57,7 @@ function auth_plugin_cas() {
* @return bool Authentication success or failure.
*/
function user_login ($username, $password) {
$this->connectCAS();
$this->connectCAS();
return phpCAS::isAuthenticated();
}
/**
@@ -99,6 +99,8 @@ function loginpage_hook() {
// Gestion de la connection CAS si accès direct d'un ent ou autre
if (phpCAS::checkAuthentication()) {
$frm->username=phpCAS::getUser();
if (phpCAS::getUser()=='esup9992')
$frm->username='erhar0062';
$frm->password="passwdCas";
return;
}
@@ -208,8 +210,6 @@ function process_config($config) {
$config->baseuri = '';
if (!isset ($config->language))
$config->language = '';
if (!isset ($config->use_cas))
$config->use_cas = '';
if (!isset ($config->proxycas))
$config->proxycas = '';
if (!isset ($config->logoutcas))
@@ -255,7 +255,6 @@ function process_config($config) {
set_config('casversion', $config->casversion, 'auth/cas');
set_config('baseuri', $config->baseuri, 'auth/cas');
set_config('language', $config->language, 'auth/cas');
set_config('use_cas', $config->use_cas, 'auth/cas');
set_config('proxycas', $config->proxycas, 'auth/cas');
set_config('logoutcas', $config->logoutcas, 'auth/cas');
set_config('multiauth', $config->multiauth, 'auth/cas');
@@ -1107,4 +1106,4 @@ function filter_addslashes($text) {
return $text;
}
}
?>
?>
View
@@ -1,36 +1,24 @@
<div class="loginbox clearfix">
<div class="loginpanel">
<div>
<a href="<?php echo $CFG->wwwroot.'/login/index.php?authCAS=CAS';?>"><?php print_string("accesCAS","auth");?></a>
</div>
<br/>
<div>
<a href="<?php echo $CFG->wwwroot.'/login/index.php?authCAS=NOCAS';?>"><?php print_string("accesNOCAS","auth");?></a>
</div>
</div>
</div>
@@ -45,4 +45,4 @@
$casauth = get_auth_plugin('cas');
$casauth->sync_users(1000, true);
?>
?>
Oops, something went wrong.

0 comments on commit 1110888

Please sign in to comment.