Changeset 522

Show
Ignore:
Timestamp:
03/31/05 13:35:23 (8 years ago)
Author:
benoitg
Message:

2005-03-31 Benoit Gr�goire <bock@…>

  • More RADIUS install documentation.
  • Fix schema_validate.php
Location:
trunk/wifidog-auth
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/ChangeLog

    r520 r522  
    1  2005-03-31 Francois Proulx  <francois.proulx@gmail.com> 
     12005-03-31 Benoit Gr�goire  <bock@step.polymtl.ca> 
     2        * More RADIUS install documentation. 
     3        * Fix schema_validate.php 
     4         
     52005-03-31 Francois Proulx  <francois.proulx@gmail.com> 
    26        * Moved language definition  
    37        * Moved e-mail subjects to User class ( each e-mail functions ) 
    48         
    5  2005-03-31 Francois Proulx  <francois.proulx@gmail.com> 
     92005-03-31 Francois Proulx  <francois.proulx@gmail.com> 
    610        * Added missing schema_validate.php modifs. 
    711 
  • trunk/wifidog-auth/INSTALL

    r518 r522  
    2727-Edit wifidog/config.php to suit your environment. 
    2828 
    29 ***************************** 
    30 RADIUS authentication support 
    31 ***************************** 
     29************************************* 
     30RADIUS authentication support section 
     31************************************* 
    3232 
    33 You'll need these RPM packages 
     33The following section only needs to be followed if you want RADIUS support.  You'll need to install PEAR and several PEAR and PHP modules.  The procedure below is for PHP 5.0.2 under Mandrake 10.1.  You WILL need to adapt it under other distributions.   
    3434 
     35All necessary RPM packages are available in the contrib urpmi source.  If you don't have a contrib source already, you can add one with the command: 
     36urpmi.addmedia contrib http://gulus.usherbrooke.ca/pub/distro/Mandrakelinux/official/10.1/i586/media/contrib with media_info/hdlist.cz 
     37 
     38You'll need the following packages: 
    3539libphp5-commons 
    3640php5-cli 
    3741php5-devel 
    3842php5-xml 
    39 php5-xmlrpc ---> requires libxmlrpc 
     43php5-xmlrpc ---> d�pend de libxmlrpc 
     44php5-mhash  
     45php5-mcrypt 
    4046 
    41 run this in a shell 
     47The following command should install them all and resolve dependencies: 
     48 
     49urpmi php5-cli php5-devel php5-xml php5-xmlrpc php5-mhash php5-mcrypt 
     50 
     51To install PEAR, run this in a shell: 
    4252"lynx -source http://go-pear.org | php5" 
    4353 
     
    4555WARNING: 
    4656You must have PHP5 CLI with php5ize installed 
     57NB : By default Mandrake renames the PHP binaries with a 5 suffix.  You should create symbolic links so that you can use standard scripts: 
     58 
     59ln -s /usr/bin/php5 /usr/bin/php 
     60ln -s /usr/bin/php5ize /usr/bin/phpize 
    4761************* 
    48 Make sure your include_path refers to your PEAR install 
    49 ie. /usr/share/pear 
    5062 
    5163Now you'll need a few packages, you can let PEAR install them 
    52 automatically, make sure you have Console_Opt, Archive_Tar et XML_RPC 
    53 before you do this. 
     64automatically: 
    5465 
    55 Run those scripts 
    56 /usr/share/pear/scripts/pear.sh install Auth 
    57 /usr/share/pear/scripts/pear.sh install radius   ( PECL module compilation) 
    58 /usr/share/pear/scripts/pear.sh install Auth_RADIUS 
     66pear install Auth 
     67pear install radius   ( PECL module compilation) 
     68pear install Auth_RADIUS 
     69pear install Crypt_CHAP 
     70 
     71***************************************** 
     72End RADIUS authentication support section 
     73***************************************** 
    5974 
    6075 
  • trunk/wifidog-auth/wifidog/config.php

    r521 r522  
    77 * 
    88 *     $Log$ 
     9 *     Revision 1.26  2005/03/31 18:35:23  benoitg 
     10 *     2005-03-31 Benoit Gr�goire  <bock@step.polymtl.ca> 
     11 *      * More RADIUS install documentation. 
     12 *      * Fix schema_validate.php 
     13 * 
    914 *     Revision 1.25  2005/03/31 17:54:45  fproulx 
    1015 *     Missing files 
     
    180185                             'authenticator'=>new AuthenticatorRadius(IDRC_ACCOUNT_ORIGIN, "localhost", 1812, 1813, "secret_key", "CHAP_MD5")); 
    181186*/ 
     187 
     188// RADIUS authenticators ( see AuthenticatorRadius constuctor doc for details ) 
     189 
     190require_once BASEPATH.'classes/AuthenticatorRadius.php'; 
     191 
     192define('IDRC_ACCOUNT_ORIGIN', 'IDRC_RADIUS_USER'); 
     193$AUTH_SOURCE_ARRAY[IDRC_ACCOUNT_ORIGIN]=array( 
     194                             'name'=>"IDRC RADIUS Server test", 
     195                             'authenticator'=>new AuthenticatorRadius(IDRC_ACCOUNT_ORIGIN, "192.168.0.11", 1812, 1813, "secret_key", "CHAP_MD5")); 
    182196 
    183197/*These are the file names of the different templates that can be put in the CONTENT_PATH/(node_id)/ folders */ 
  • trunk/wifidog-auth/wifidog/include/schema_validate.php

    r519 r522  
    9797                                $new_schema_version = 3; 
    9898                                echo "<h2>Preparing SQL statements to update schema to version  $new_schema_version</h2>"; 
     99                                $sql .= "UPDATE schema_info SET value='$new_schema_version' WHERE tag='schema_version';\n"; 
    99100                                $sql .= "DROP INDEX idx_unique_email_and_account_origin;\n"; 
    100101                                $sql .= "ALTER TABLE users DROP CONSTRAINT check_email_not_empty;\n";