From LedHed's Wiki
Jump to: navigation, search
 
(Configure Settings)
Line 17: Line 17:
 
* Read & Edit the Change Password Function
 
* Read & Edit the Change Password Function
 
vi change_password_function.inc
 
vi change_password_function.inc
 +
 +
 +
''// The host of the database''<br>
 +
define ('RCUBE_EXT_CHANGE_PASS_HOST',  'localhost');<br>
 +
 +
''// The username to connect to the database''<br>
 +
define ('RCUBE_EXT_CHANGE_PASS_USER',  'postfix');<br>
 +
 +
''// The password to connect to the database''<br>
 +
define ('RCUBE_EXT_CHANGE_PASS_PASS',  ''''Your-Postfix-MySQL-User-Password-Here'''');<br>
 +
 +
''// The name of the database''<br>
 +
define ('RCUBE_EXT_CHANGE_PASS_NAME',  'postfix');<br>
 +
 +
  
  

Revision as of 10:58, 29 July 2006

Reference: http://roundcubeforum.net/index.php?topic=9.0

Download the Patch

cd /var/www/roundcube wget http://www.poison.be/wp-content/uploads/2006/05/roundcubemail-0.1beta-changepassword.patch

If the above link is broken please refer to this topic on the RoundCube Forum or get it Here


Apply The Patch

patch -p1 < roundcubemail-0.1beta-changepassword.patch


Configure Settings

cd ext/

  • Read & Edit the Change Password Function

vi change_password_function.inc


// The host of the database
define ('RCUBE_EXT_CHANGE_PASS_HOST', 'localhost');

// The username to connect to the database
define ('RCUBE_EXT_CHANGE_PASS_USER', 'postfix');

// The password to connect to the database
define ('RCUBE_EXT_CHANGE_PASS_PASS', 'Your-Postfix-MySQL-User-Password-Here');

// The name of the database
define ('RCUBE_EXT_CHANGE_PASS_NAME', 'postfix');



(If you are using Clear Text Passwords change this line)

define ('RCUBE_EXT_CHANGE_PASS_UPDATEQUERY', 'UPDATE mailbox SET password = "%md5%" WHERE username = "%user%" AND password = "%oldmd5%"');

to

define ('RCUBE_EXT_CHANGE_PASS_UPDATEQUERY', 'UPDATE mailbox SET password = "%clear%" WHERE username = "%user%" AND password = "%old%"');