Permalink
Browse files

*** empty log message ***

  • Loading branch information...
1 parent 7396696 commit 017f1a617d60bd2d0e9999fa614d89552d3bfc72 jgutierr25 committed Jul 17, 2007
Showing with 422 additions and 35 deletions.
  1. +4 −0 auth/cas/README-CAS
  2. +4 −5 auth/cas/auth.php
  3. +0 −12 auth/cas/cas_form.html
  4. +1 −1 auth/cas/cas_ldap_sync_users.php
  5. +413 −17 auth/cas/config.html
View
@@ -2,3 +2,7 @@ CAS-module README
+
+
+
+
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 017f1a6

Please sign in to comment.