[ Index ]
 

Code source de e107 0.7.8

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/e107_plugins/alt_auth/ -> alt_auth_readme.txt (source)

   1  /* 

   2  |  Copyright (C) 2003 Thom Michelbrink

   3  |

   4  |  Author:  Thom Michelbrink     mcfly@e107.org

   5  |

   6  */
   7  
   8  Purpose:
   9  
  10    This is a plugin for the E107 CMS system (e107.org).
  11    This plugin will enable Alternate authorization functionality to your site.
  12      
  13  Requirements:
  14  
  15    This plugin requires e107 Verion 0.600+
  16  
  17  ############## INSTALLATION ####################### 

  18  
  19  1) Upload all files to your e107_plugins directory on your server, retaining directory structure.
  20  2) Go to the admin section of the website, go the to plugin manager and install the Alt auth.
  21  3) Go to the admin section of the website and configure the Alternate Authorization setting.
  22  
  23  Until this is integrated into the e107 core. the following lines need to be added to the e107_handlers\login.php file.  They need to be inserted into the userlogin() function, just after the 'global $pref;' line:
  24  
  25          if($pref['auth_method'] && $pref['auth_method'] != "e107"){
  26              $auth_file=e_PLUGIN."alt_auth/".$pref['auth_method']."_auth.php";
  27              if(file_exists($auth_file)){
  28                  require_once(e_PLUGIN."alt_auth/alt_auth_login_class.php");
  29                  $result = new alt_login($pref['auth_method'],$username, $userpass);
  30              }
  31          }
  32  
  33  
  34  --- AUTHORIZATION TYPES --
  35  This version currently supports Active Directory and LDAP authorization types.  Others could easily 
  36  be added though.
  37  
  38  The requirements to add a new auth type are:
  39  
  40  xxx_auth.php - Actual file the performs the authorization based on user input of uname / passwd.
  41  xxx_conf.php - The file used to edit any configuration option for your auth type.
  42  
  43  The xxx_auth.php must contain a class named auth_login(), the class must contain a function named login($uname,$passwd).  The login() function must return values of:
  44  AUTH_SUCCESS - valid login
  45  AUTH_NOUSER - User not found
  46  AUTH_BADPASSWORD - Password is incorrect
  47  -----------------------------------------------------------------------------
  48  
  49  Version history:
  50  
  51  11/11/2003 - Initial beta release 
  52   


Généré le : Sun Apr 1 01:23:32 2007 par Balluche grâce à PHPXref 0.7