Changeset 4165 in subversion


Ignore:
Timestamp:
Nov 2, 2010 3:09:57 AM (3 years ago)
Author:
alec
Message:
  • hMail driver: Add possibility to connect to remote host (patch from Roland Liebl)
Location:
trunk/plugins/password
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/password/README

    r3989 r4165  
    6161 
    6262 You can specify which database to connect by 'password_db_dsn' option and 
    63  what SQL query to execute by 'password_query'. See main.inc.php file for 
     63 what SQL query to execute by 'password_query'. See main.inc.php.dist file for 
    6464 more info. 
    6565 
     
    166166 
    167167 You can specify which host to connect to via 'password_pop_host' and 
    168  what port via 'password_pop_port'. See config.inc.php file for more info. 
     168 what port via 'password_pop_port'. See config.inc.php.dist file for more info. 
    169169 
    170170 
     
    172172 ---------------- 
    173173 
    174  See config.inc.php file. Requires PEAR::Net_LDAP2 package. 
     174 See config.inc.php.dist file. Requires PEAR::Net_LDAP2 package. 
    175175 
    176176 
     
    178178 -------------------------------------------- 
    179179 
    180  You can specify which host to connect to via 'password_directadmin_host'  
    181  and what port via 'password_direactadmin_port'. See config.inc.php file  
     180 You can specify which host to connect to via 'password_directadmin_host' 
     181 and what port via 'password_direactadmin_port'. See config.inc.php.dist file 
    182182 for more info. 
    183183 
     
    187187 
    188188 You can specify parameters for HTTP connection to cPanel's admin 
    189  interface. See config.inc.php file for more info. 
     189 interface. See config.inc.php.dist file for more info. 
    190190 
    191191 
     
    194194 
    195195 You can specify which host and port to connect to via 'password_ximss_host'  
    196  and 'password_ximss_port'. See config.inc.php file for more info. 
     196 and 'password_ximss_port'. See config.inc.php.dist file for more info. 
    197197 
    198198 
     
    208208 ------------------------ 
    209209 
    210  Requires PHP COM (Windows only). 
     210 Requires PHP COM (Windows only). For access to hMail server on remote host 
     211 you'll need to define 'hmailserver_remote_dcom' and 'hmailserver_server'. 
     212 See config.inc.php.dist file for more info. 
    211213 
    212214 
     
    222224 
    223225 Driver that adds functionality to change the systems user password via  
    224  the 'chpasswd' command. See config.inc.php file. 
     226 the 'chpasswd' command. See config.inc.php.dist file. 
    225227 
    226228 Attached wrapper script (chpass-wrapper.py) restricts password changes 
     
    246248 ----------------------------------- 
    247249 
    248  Driver for XMail (www.xmailserver.org). See config.inc.php file for configuration description. 
     250 Driver for XMail (www.xmailserver.org). See config.inc.php.dist file 
     251 for configuration description. 
    249252 
    250253 
     
    257260 PASSWORD_CRYPT_ERROR, PASSWORD_ERROR when driver was unable to change password. 
    258261 See existing drivers in drivers/ directory for examples. 
     262 
  • trunk/plugins/password/config.inc.php.dist

    r4019 r4165  
    257257$rcmail_config['xmail_port'] = 6017; 
    258258 
     259 
     260// hMail Driver options 
     261// ----------------------- 
     262// Remote hMailServer configuration 
     263// true:  HMailserver is on a remote box (php.ini: com.allow_dcom = true) 
     264// false: Hmailserver is on same box as PHP 
     265$rcmail_config['hmailserver_remote_dcom'] = false; 
     266// Windows credentials 
     267$rcmail_config['hmailserver_server'] = array( 
     268    'Server' => 'localhost', // hostname or ip address 
     269    'Username' => 'administrator', // windows username 
     270    'Password' => 'password' // windows user password 
     271); 
     272 
  • trunk/plugins/password/drivers/hmail.php

    r3568 r4165  
    44 * hMailserver password driver 
    55 * 
    6  * @version 1.1 
     6 * @version 1.2 - 31.10.2010 
    77 * @author Roland 'rosali' Liebl <myroundcube@mail4us.net> 
    88 * 
     
    1717 
    1818    try { 
    19         $obApp = new COM('hMailServer.Application'); 
     19      $remote = $rcmail->config->get('hmailserver_remote_dcom', false); 
     20      if ($remote) 
     21        $obApp = new COM("hMailServer.Application", $rcmail->config->get('hmailserver_server')); 
     22      else 
     23        $obApp = new COM("hMailServer.Application"); 
    2024    } 
    2125    catch (Exception $e) { 
    22         write_log('errors', "Plugin password (hmail driver):" .  $e->getMessage() . ". This problem is often caused by DCOM permissions not being set."); 
     26        write_log('errors', "Plugin password (hmail driver):" .  $e->getMessage() 
     27            . ". This problem is often caused by DCOM permissions not being set."); 
    2328        return PASSWORD_ERROR; 
    2429    } 
  • trunk/plugins/password/package.xml

    r4058 r4165  
    1616                <active>yes</active> 
    1717        </lead> 
    18         <date>2010-10-07</date> 
     18        <date>2010-11-02</date> 
    1919        <time>09:00:00</time> 
    2020        <version> 
    21                 <release>2.0</release> 
     21                <release>2.1</release> 
    2222                <api>1.6</api> 
    2323        </version> 
     
    2828        <license uri="http://www.gnu.org/licenses/gpl-2.0.html">GNU GPLv2</license> 
    2929        <notes> 
    30 - Fixed SQL Injection in SQL driver when using %p or %o variables in query (#1487034) 
     30- hMail driver: Add possibility to connect to remote host 
    3131    </notes> 
    3232        <contents> 
     
    201201            </notes> 
    202202        </release> 
     203        <release> 
     204                <date>2010-10-07</date> 
     205                <time>09:00:00</time> 
     206                <version> 
     207                        <release>2.0</release> 
     208                        <api>1.6</api> 
     209                </version> 
     210                <stability> 
     211                        <release>stable</release> 
     212                        <api>stable</api> 
     213                </stability> 
     214                <license uri="http://www.gnu.org/licenses/gpl-2.0.html">GNU GPLv2</license> 
     215                <notes> 
     216- Fixed SQL Injection in SQL driver when using %p or %o variables in query (#1487034) 
     217            </notes> 
     218        </release> 
    203219    </changelog> 
    204220</package> 
Note: See TracChangeset for help on using the changeset viewer.