Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
  • Loading branch information
jgutierr25 committed Jul 17, 2007
1 parent 7396696 commit 017f1a6
Show file tree
Hide file tree
Showing 5 changed files with 422 additions and 35 deletions.
4 changes: 4 additions & 0 deletions auth/cas/README-CAS
Expand Up @@ -2,3 +2,7 @@ CAS-module README







9 changes: 4 additions & 5 deletions auth/cas/auth.php
Expand Up @@ -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();
}
/**
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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))
Expand Down Expand Up @@ -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');
Expand Down Expand Up @@ -1107,4 +1106,4 @@ function filter_addslashes($text) {
return $text;
}
}
?>
?>
12 changes: 0 additions & 12 deletions auth/cas/cas_form.html
@@ -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>


2 changes: 1 addition & 1 deletion auth/cas/cas_ldap_sync_users.php
Expand Up @@ -45,4 +45,4 @@
$casauth = get_auth_plugin('cas');
$casauth->sync_users(1000, true);

?>
?>

0 comments on commit 017f1a6

Please sign in to comment.