Hey all,
First off, this is unofficial, I am not the writer of the password plugin. I did not like how the cpanel driver works because:
- It requires your admin password to be put in the config file
- It passes the new password in the url with a GET
So, I modified the plugin to work like the old v2 plugin, which uses the credentials of the user who is changing the password to log in instead of the admin password.
I attached the diff file to this post, all you have to do is patch the cpanel.php file found at 'roundcubemail-0.3.1/plugins/password/drivers/cpanel.php'
Also, please note these differences in the config file for the password plugin.
//SAME
$rcmail_config['password_cpanel_host'] = 'domain.com';
// No Longer used
$rcmail_config['password_cpanel_username'] = 'username';
// No Longer Used
$rcmail_config['password_cpanel_password'] = 'password';
// This is now the webmail port, not the admin port
// I have bluehost and they use 2095(non-ssl) and 2096(ssl)
// I believe hostmonster is the same
$rcmail_config['password_cpanel_port'] = 2096;
// SAME
$rcmail_config['password_cpanel_ssl'] = true;
// The cPanel theme in use - SAME
$rcmail_config['password_cpanel_theme'] = 'bluehost';
I am not sure who maintains the password plugin, but please feel free to add it to the plugin as an option if you want.
Enjoy!
Nick