Changeset 522
- Timestamp:
- 03/31/05 13:35:23 (8 years ago)
- Location:
- trunk/wifidog-auth
- Files:
-
- 4 modified
-
ChangeLog (modified) (1 diff)
-
INSTALL (modified) (2 diffs)
-
wifidog/config.php (modified) (2 diffs)
-
wifidog/include/schema_validate.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog-auth/ChangeLog
r520 r522 1 2005-03-31 Francois Proulx <francois.proulx@gmail.com> 1 2005-03-31 Benoit Gr�goire <bock@step.polymtl.ca> 2 * More RADIUS install documentation. 3 * Fix schema_validate.php 4 5 2005-03-31 Francois Proulx <francois.proulx@gmail.com> 2 6 * Moved language definition 3 7 * Moved e-mail subjects to User class ( each e-mail functions ) 4 8 5 2005-03-31 Francois Proulx <francois.proulx@gmail.com>9 2005-03-31 Francois Proulx <francois.proulx@gmail.com> 6 10 * Added missing schema_validate.php modifs. 7 11 -
trunk/wifidog-auth/INSTALL
r518 r522 27 27 -Edit wifidog/config.php to suit your environment. 28 28 29 ***************************** 30 RADIUS authentication support 31 ***************************** 29 ************************************* 30 RADIUS authentication support section 31 ************************************* 32 32 33 You'll need these RPM packages 33 The 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. 34 34 35 All 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: 36 urpmi.addmedia contrib http://gulus.usherbrooke.ca/pub/distro/Mandrakelinux/official/10.1/i586/media/contrib with media_info/hdlist.cz 37 38 You'll need the following packages: 35 39 libphp5-commons 36 40 php5-cli 37 41 php5-devel 38 42 php5-xml 39 php5-xmlrpc ---> requires libxmlrpc 43 php5-xmlrpc ---> d�pend de libxmlrpc 44 php5-mhash 45 php5-mcrypt 40 46 41 run this in a shell 47 The following command should install them all and resolve dependencies: 48 49 urpmi php5-cli php5-devel php5-xml php5-xmlrpc php5-mhash php5-mcrypt 50 51 To install PEAR, run this in a shell: 42 52 "lynx -source http://go-pear.org | php5" 43 53 … … 45 55 WARNING: 46 56 You must have PHP5 CLI with php5ize installed 57 NB : By default Mandrake renames the PHP binaries with a 5 suffix. You should create symbolic links so that you can use standard scripts: 58 59 ln -s /usr/bin/php5 /usr/bin/php 60 ln -s /usr/bin/php5ize /usr/bin/phpize 47 61 ************* 48 Make sure your include_path refers to your PEAR install49 ie. /usr/share/pear50 62 51 63 Now 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. 64 automatically: 54 65 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 66 pear install Auth 67 pear install radius ( PECL module compilation) 68 pear install Auth_RADIUS 69 pear install Crypt_CHAP 70 71 ***************************************** 72 End RADIUS authentication support section 73 ***************************************** 59 74 60 75 -
trunk/wifidog-auth/wifidog/config.php
r521 r522 7 7 * 8 8 * $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 * 9 14 * Revision 1.25 2005/03/31 17:54:45 fproulx 10 15 * Missing files … … 180 185 'authenticator'=>new AuthenticatorRadius(IDRC_ACCOUNT_ORIGIN, "localhost", 1812, 1813, "secret_key", "CHAP_MD5")); 181 186 */ 187 188 // RADIUS authenticators ( see AuthenticatorRadius constuctor doc for details ) 189 190 require_once BASEPATH.'classes/AuthenticatorRadius.php'; 191 192 define('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")); 182 196 183 197 /*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 97 97 $new_schema_version = 3; 98 98 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"; 99 100 $sql .= "DROP INDEX idx_unique_email_and_account_origin;\n"; 100 101 $sql .= "ALTER TABLE users DROP CONSTRAINT check_email_not_empty;\n";
