[ Index ]
 

Code source de Claroline 188

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/claroline/auth/extauth/drivers/ -> postnuke.inc.php.dist (source)

   1  <?php // $Id: postnuke.inc.php.dist,v 1.1.2.1 2007/04/10 13:30:18 mathieu Exp $
   2  if ( count( get_included_files() ) == 1 ) die( '---' );
   3  /**
   4   * CLAROLINE
   5   *
   6   * @version 1.8 $Revision: 1.1.2.1 $
   7   *
   8   * @copyright (c) 2001-2006 Universite catholique de Louvain (UCL)
   9   *
  10   * @license http://www.gnu.org/copyleft/gpl.html (GPL) GENERAL PUBLIC LICENSE
  11   *
  12   * @package CLAUTH
  13   *
  14   * @author Claro Team <cvs@claroline.net>
  15   */
  16  
  17  
  18  $authSourceName = 'postnuke';
  19  $authSourceType = 'DB';
  20  
  21  // Define the Auth driver options
  22  
  23  $extAuthOptionList = array(
  24  
  25      // PUT HERE THE CORRECT DSN FOR YOUR DB SYSTEM
  26      'dsn'         => 'mysql://dbuser:dbpasswor@domain/postnuke',
  27  
  28      'table'       => 'nk_users', // warning ! table prefix can change from one system to another
  29      'usernamecol' => 'pn_uname',
  30      'passwordcol' => 'pn_pass',
  31      'db_fields'   => array('pn_name', 'pn_email'),
  32      'cryptType'   => 'md5'
  33  );
  34  
  35  
  36  // Link additionnal external authentication attributes to the Claroline
  37  // user attribute.
  38  //
  39  // array KEYS   are the Claroline attributes and
  40  // array VALUES are the authentication external attributes.
  41  
  42  $extAuthAttribNameList = array (
  43      'lastname'     => 'pn_name',
  44      'email'        => 'pn_email',
  45  );
  46  
  47  // Array setting optionnal preliminary treatment to the data retrieved from the
  48  // exernal authentication source. Array KEYS are the concernend claroline
  49  // user table fields, and Array VALUES are either the name of a function which
  50  // makes the treatment or simply a default value to insert
  51  // Note. Treatments doesn't necessary previously require data from the external
  52  // authentication system. They're able to be trigged from NULL value ...
  53  
  54  $extAuthAttribTreatmentList = array ('status' => 5);
  55  
  56  
  57  // PROCESS AUTHENTICATION
  58  
  59  return require dirname(__FILE__).'/../extAuthProcess.inc.php';
  60  
  61  ?>


Généré le : Thu Nov 29 14:38:42 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics