mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 01:25:01 +02:00
Tidy up alt_auth plugin - mostly documentation, some code rationalisation, conversion to the 2.0 way, etc
This commit is contained in:
@@ -14,6 +14,14 @@
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
/**
|
||||
* e107 Alternate authorisation plugin
|
||||
*
|
||||
* @package e107_plugins
|
||||
* @subpackage alt_auth
|
||||
* @version $Id$;
|
||||
*/
|
||||
|
||||
define('LAN_AL_AUTH_01','Alt auth Settings changed');
|
||||
define('LAN_AL_AUTH_02','Alt auth extended user classes changed');
|
||||
define('LAN_AL_AUTH_03','Alt auth method settings changed');
|
||||
|
@@ -2,7 +2,7 @@
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2011 e107 Inc (e107.org)
|
||||
* Copyright (C) 2008-2012 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
@@ -12,6 +12,15 @@
|
||||
* $Id$
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* e107 Alternate authorisation plugin
|
||||
*
|
||||
* @package e107_plugins
|
||||
* @subpackage alt_auth
|
||||
* @version $Id$;
|
||||
*/
|
||||
|
||||
define('LAN_ALT_1', 'Primary authorisation type');
|
||||
define('LAN_ALT_2', 'Update settings');
|
||||
define('LAN_ALT_3', 'Choose Alternate Authorisation Type');
|
||||
@@ -35,7 +44,7 @@ define('LAN_ALT_19', 'Photo field');
|
||||
define('LAN_ALT_20', 'Join date field');
|
||||
define('LAN_ALT_21', 'Ban status field');
|
||||
define('LAN_ALT_22', 'Class membership field');
|
||||
define('LAN_ALT_23', 'XUP file field');
|
||||
//define('LAN_ALT_23', 'XUP file field');
|
||||
define('LAN_ALT_24', 'Password salt field');
|
||||
define('LAN_ALT_25', '(sometimes combined with password for added security)');
|
||||
define('LAN_ALT_26', 'Database type:');
|
||||
@@ -95,6 +104,18 @@ define('LAN_ALT_77', 'Only users in this class (on the database set above) are p
|
||||
define('LAN_ALT_78', 'Failed password action');
|
||||
define('LAN_ALT_79', 'If user exists in primary DB, but enters an incorrect password, how should that be handled?');
|
||||
|
||||
define('IMPORTDB_LAN_2', 'Plain Text');
|
||||
define('IMPORTDB_LAN_3', 'Joomla salted');
|
||||
define('IMPORTDB_LAN_4', 'Mambo salted');
|
||||
define('IMPORTDB_LAN_5', 'SMF (SHA1)');
|
||||
define('IMPORTDB_LAN_6', 'Generic SHA1');
|
||||
define('IMPORTDB_LAN_7', 'MD5 (E107 original)');
|
||||
define('IMPORTDB_LAN_8', 'E107 salted (option 2.0 on)');
|
||||
define('IMPORTDB_LAN_12', 'PHPBB2/PHPBB3 salted');
|
||||
define('IMPORTDB_LAN_13', 'WordPress salted');
|
||||
define('IMPORTDB_LAN_14', 'Magento salted');
|
||||
|
||||
|
||||
|
||||
define('LAN_ALT_FALLBACK', 'Use secondary authorisation');
|
||||
define('LAN_ALT_FAIL', 'Failed login');
|
||||
|
@@ -1,17 +1,39 @@
|
||||
<?php
|
||||
|
||||
define('E107DB_LAN_1', 'E107 format database');
|
||||
define('E107DB_LAN_9', 'Password Method:');
|
||||
define('E107DB_LAN_10', 'Configure E107 db auth');
|
||||
define('E107DB_LAN_11', 'Check the box against any field you wish to be transferred to the local database:');
|
||||
|
||||
|
||||
define('IMPORTDB_LAN_7', 'MD5 (E107 original)');
|
||||
define('IMPORTDB_LAN_8', 'E107 salted (option 0.8 on)');
|
||||
|
||||
|
||||
define('LAN_AUTHENTICATE_HELP','This authentication method is to be used with a second E107 database, which may use a different password format to this system. The
|
||||
original password is read from the local database, and validated against the storage format of the original system. If it verifies, its converted to the current E107-compatible format and
|
||||
stored in the database.');
|
||||
|
||||
?>
|
||||
<?php
|
||||
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2012 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
* Language file
|
||||
*
|
||||
* $URL$
|
||||
* $Id$
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* e107 Alternate authorisation plugin
|
||||
*
|
||||
* @package e107_plugins
|
||||
* @subpackage alt_auth
|
||||
* @version $Id$;
|
||||
*/
|
||||
|
||||
define('E107DB_LAN_1', 'E107 format database');
|
||||
define('E107DB_LAN_9', 'Password Method:');
|
||||
define('E107DB_LAN_10', 'Configure E107 db auth');
|
||||
define('E107DB_LAN_11', 'Check the box against any field you wish to be transferred to the local database:');
|
||||
|
||||
|
||||
define('IMPORTDB_LAN_7', 'MD5 (E107 original)');
|
||||
define('IMPORTDB_LAN_8', 'E107 salted (option 2.0 on)');
|
||||
|
||||
|
||||
define('LAN_AUTHENTICATE_HELP','This authentication method is to be used with a second E107 database, which may use a different password format to this system. The
|
||||
original password is read from the local database, and validated against the storage format of the original system. If it verifies, its converted to the current E107-compatible format and
|
||||
stored in the database.');
|
||||
|
||||
?>
|
||||
|
@@ -2,7 +2,7 @@
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2011 e107 Inc (e107.org)
|
||||
* Copyright (C) 2008-2012 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
@@ -12,22 +12,32 @@
|
||||
* $Id$
|
||||
*
|
||||
*/
|
||||
define('IMPORTDB_LAN_1', 'Database type');
|
||||
define('IMPORTDB_LAN_2', 'Plain Text');
|
||||
define('IMPORTDB_LAN_3', 'Joomla salted');
|
||||
define('IMPORTDB_LAN_4', 'Mambo salted');
|
||||
define('IMPORTDB_LAN_5', 'SMF (SHA1)');
|
||||
define('IMPORTDB_LAN_6', 'Generic SHA1');
|
||||
define('IMPORTDB_LAN_7', 'MD5 (E107 original)');
|
||||
define('IMPORTDB_LAN_8', 'E107 salted (option 0.8 on)');
|
||||
|
||||
/**
|
||||
* e107 Alternate authorisation plugin
|
||||
*
|
||||
* @package e107_plugins
|
||||
* @subpackage alt_auth
|
||||
* @version $Id$;
|
||||
*/
|
||||
|
||||
// Some password-related strings moved to admin_alt_auth.php for generic use
|
||||
//define('IMPORTDB_LAN_1', 'Database type');
|
||||
//define('IMPORTDB_LAN_2', 'Plain Text');
|
||||
//define('IMPORTDB_LAN_3', 'Joomla salted');
|
||||
//define('IMPORTDB_LAN_4', 'Mambo salted');
|
||||
//define('IMPORTDB_LAN_5', 'SMF (SHA1)');
|
||||
//define('IMPORTDB_LAN_6', 'Generic SHA1');
|
||||
//define('IMPORTDB_LAN_7', 'MD5 (E107 original)');
|
||||
//define('IMPORTDB_LAN_8', 'E107 salted (option 2.0 on)');
|
||||
define('IMPORTDB_LAN_9', 'Password Method:');
|
||||
define('IMPORTDB_LAN_10', 'Configure imported database password type');
|
||||
define('IMPORTDB_LAN_11', 'This option is to be used when you have imported some other user-based system into E107.
|
||||
It allows you to accept passwords encoded in the selected non-standard format.
|
||||
Each user\'s password is converted to E107 format when they log in.');
|
||||
define('IMPORTDB_LAN_12', 'PHPBB2/PHPBB3 salted');
|
||||
define('IMPORTDB_LAN_13', 'WordPress salted');
|
||||
define('IMPORTDB_LAN_14', 'Magento salted');
|
||||
//define('IMPORTDB_LAN_12', 'PHPBB2/PHPBB3 salted');
|
||||
//define('IMPORTDB_LAN_13', 'WordPress salted');
|
||||
//define('IMPORTDB_LAN_14', 'Magento salted');
|
||||
|
||||
|
||||
define('LAN_AUTHENTICATE_HELP','This authentication method is to be used <i>only</i> when you have imported a user database into E107, and the password is in an incompatible format. The
|
||||
|
@@ -1,23 +1,44 @@
|
||||
<?php
|
||||
define("LDAPLAN_1", "Server address");
|
||||
define("LDAPLAN_2", "Base DN or Domain<br />LDAP - Enter BaseDN<br />AD - enter the fqdn eg ad.mydomain.co.uk");
|
||||
define("LDAPLAN_3", "LDAP Browsing user<br />Full context of the user who is able to search the directory.");
|
||||
define("LDAPLAN_4", "LDAP Browsing password<br />Password for the LDAP Browsing user.");
|
||||
define("LDAPLAN_5", "LDAP Version");
|
||||
define("LDAPLAN_6", "Configure LDAP auth");
|
||||
define("LDAPLAN_7", "eDirectory search filter:");
|
||||
define("LDAPLAN_8", "This will be used to ensure the username is in the correct tree, <br />ie '(objectclass=inetOrgPerson)'");
|
||||
define("LDAPLAN_9", "Current search filter will be:");
|
||||
define("LDAPLAN_10", "Settings Updated");
|
||||
define("LDAPLAN_11", "WARNING: It appears as if the ldap module is not currently available; setting your auth method to LDAP will probably not work!");
|
||||
define("LDAPLAN_12", 'Server Type');
|
||||
define("LDAPLAN_13", 'Update settings');
|
||||
define('LDAPLAN_14', 'OU for AD (e.g. ou=itdept)');
|
||||
|
||||
|
||||
define('SHOW_COPY_HELP', TRUE);
|
||||
define('SHOW_CONVERSION_HELP', TRUE);
|
||||
define('LAN_AUTHENTICATE_HELP','This method can be used to authenticate against most LDAP servers, including Novell\'s eDirectory and Microsoft\'s Active Directory. Refer to the wiki for further information.');
|
||||
|
||||
|
||||
?>
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2012 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
* LDAP authorisation for alt_auth plugin - language file
|
||||
*
|
||||
* $URL$
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/**
|
||||
* e107 Alternate authorisation plugin
|
||||
*
|
||||
* @package e107_plugins
|
||||
* @subpackage alt_auth
|
||||
* @version $Id$;
|
||||
*/
|
||||
|
||||
define('LDAPLAN_1', 'Server address');
|
||||
define('LDAPLAN_2', 'Base DN or Domain<br />LDAP - Enter BaseDN<br />AD - enter the fqdn eg ad.mydomain.co.uk');
|
||||
define('LDAPLAN_3', 'LDAP Browsing user<br />Full context of the user who is able to search the directory.');
|
||||
define('LDAPLAN_4', 'LDAP Browsing password<br />Password for the LDAP Browsing user.');
|
||||
define('LDAPLAN_5', 'LDAP Version');
|
||||
define('LDAPLAN_6', 'Configure LDAP auth');
|
||||
define('LDAPLAN_7', 'eDirectory search filter:');
|
||||
define('LDAPLAN_8', "This will be used to ensure the username is in the correct tree, <br />e.g. '(objectclass=inetOrgPerson)'");
|
||||
define('LDAPLAN_9', 'Current search filter will be:');
|
||||
define('LDAPLAN_10', 'Settings Updated');
|
||||
define('LDAPLAN_11', 'WARNING: It appears that the ldap module is not currently available; setting your auth method to LDAP will probably not work!');
|
||||
define('LDAPLAN_12', 'Server Type');
|
||||
define('LDAPLAN_13', 'Update settings');
|
||||
define('LDAPLAN_14', 'OU for AD (e.g. ou=itdept)');
|
||||
|
||||
|
||||
define('SHOW_COPY_HELP', TRUE);
|
||||
define('SHOW_CONVERSION_HELP', TRUE);
|
||||
define('LAN_AUTHENTICATE_HELP','This method can be used to authenticate against most LDAP servers, including Novell\'s eDirectory and Microsoft\'s Active Directory. It requires that PHP\'s LDAP extension is loaded. Refer to the wiki for further information.');
|
||||
|
||||
|
||||
?>
|
||||
|
@@ -1,14 +1,38 @@
|
||||
<?php
|
||||
define("OTHERDB_LAN_1", "Database Type:");
|
||||
define("OTHERDB_LAN_2", "Server:");
|
||||
define("OTHERDB_LAN_3", "Username:");
|
||||
define("OTHERDB_LAN_4", "Password:");
|
||||
define("OTHERDB_LAN_5", "Database");
|
||||
define("OTHERDB_LAN_6", "Table");
|
||||
define("OTHERDB_LAN_7", "Username Field:");
|
||||
define("OTHERDB_LAN_8", "Password Field:");
|
||||
define("OTHERDB_LAN_9", "Password Method:");
|
||||
define("OTHERDB_LAN_10", "Configure otherdb auth");
|
||||
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2012 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
* Language file
|
||||
*
|
||||
* $URL$
|
||||
* $Id$
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* e107 Alternate authorisation plugin
|
||||
*
|
||||
* @package e107_plugins
|
||||
* @subpackage alt_auth
|
||||
* @version $Id$;
|
||||
*/
|
||||
|
||||
|
||||
define('OTHERDB_LAN_1', 'Database Type:');
|
||||
define('OTHERDB_LAN_2', 'Server:');
|
||||
define('OTHERDB_LAN_3', 'Username:');
|
||||
define('OTHERDB_LAN_4', 'Password:');
|
||||
define('OTHERDB_LAN_5', 'Database');
|
||||
define('OTHERDB_LAN_6', 'Table');
|
||||
define('OTHERDB_LAN_7', 'Username Field:');
|
||||
define('OTHERDB_LAN_8', 'Password Field:');
|
||||
define('OTHERDB_LAN_9', 'Password Method:');
|
||||
define('OTHERDB_LAN_10', 'Configure otherdb auth');
|
||||
//define("OTHERDB_LAN_11", "To transfer a field value into the local database, specify the field name in the corresponding box below. Fields marked with
|
||||
// an asterisk (*) are mandatory.<br />Leave the field blank for it not to be transferred at all");
|
||||
define('OTHERDB_LAN_12', 'Password Salt Field:');
|
||||
@@ -16,16 +40,6 @@ define('OTHERDB_LAN_13', '(Leave blank if not used)');
|
||||
define('OTHERDB_LAN_14', 'Email address Field:');
|
||||
define('OTHERDB_LAN_15', 'MySQL - generic database');
|
||||
|
||||
define("IMPORTDB_LAN_2", 'Plain Text');
|
||||
define("IMPORTDB_LAN_3", 'Joomla salted');
|
||||
define("IMPORTDB_LAN_4", 'Mambo salted');
|
||||
define("IMPORTDB_LAN_5", 'SMF (SHA1)');
|
||||
define("IMPORTDB_LAN_6", 'Generic SHA1');
|
||||
define("IMPORTDB_LAN_7", 'MD5 (E107 original)');
|
||||
define("IMPORTDB_LAN_8", 'E107 salted (option 0.8 on)');
|
||||
define("IMPORTDB_LAN_12", 'PHPBB2/PHPBB3 salted');
|
||||
define("IMPORTDB_LAN_14", 'Magento salted');
|
||||
|
||||
|
||||
define('SHOW_COPY_HELP', TRUE);
|
||||
define('SHOW_CONVERSION_HELP', TRUE);
|
||||
|
@@ -1,14 +1,37 @@
|
||||
<?php
|
||||
define('LAN_RADIUS_01', 'Server address');
|
||||
define('LAN_RADIUS_02', 'Shared secret');
|
||||
define('LAN_RADIUS_03', 'Server user');
|
||||
define('LAN_RADIUS_04', 'Server password');
|
||||
define('LAN_RADIUS_06', 'Configure RADIUS auth');
|
||||
define('LAN_RADIUS_11', 'WARNING: It appears that the RADIUS module is not currently available; setting your auth method to RADIUS will probably not work!');
|
||||
|
||||
|
||||
define('LAN_AUTHENTICATE_HELP','This authentication method is used with an external RADIUS server. It requres that PHP\'s RADIUS extension is enabled. <br />
|
||||
Note that the RADIUS server may only allow access from a specific range of IP addresses');
|
||||
|
||||
|
||||
?>
|
||||
<?php
|
||||
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2012 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
* Language file
|
||||
*
|
||||
* $URL$
|
||||
* $Id$
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* e107 Alternate authorisation plugin
|
||||
*
|
||||
* @package e107_plugins
|
||||
* @subpackage alt_auth
|
||||
* @version $Id$;
|
||||
*/
|
||||
|
||||
define('LAN_RADIUS_01', 'Server address');
|
||||
define('LAN_RADIUS_02', 'Shared secret');
|
||||
define('LAN_RADIUS_03', 'Server user');
|
||||
define('LAN_RADIUS_04', 'Server password');
|
||||
define('LAN_RADIUS_06', 'Configure RADIUS auth');
|
||||
define('LAN_RADIUS_11', 'WARNING: It appears that the RADIUS module is not currently available; setting your auth method to RADIUS will probably not work!');
|
||||
|
||||
|
||||
define('LAN_AUTHENTICATE_HELP','This authentication method is used with an external RADIUS server. It requres that PHP\'s RADIUS extension is enabled. <br />
|
||||
Note that the RADIUS server may only allow access from a specific range of IP addresses');
|
||||
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user