Roundcube Community Forum

 

Password plugin

Started by Anatoliy, April 07, 2010, 09:31:33 AM

Previous topic - Next topic

Anatoliy

I need users to be able to change passwords from RC. I see a plugin "Password" that I assigned in config.inc.php. The tab shows up, but it cannot save the new passwords because I am totally clueless how to connect it to SQL.
Is there a clear tutorial for a newbee as me, who is not a programmer? Or could you explain what am I to do with the code to make it work? I use cPanel on CentOS.
// SQL Driver options
// ------------------
// PEAR database DSN for performing the query. By default
// Roundcube DB settings are used.
$rcmail_config['password_db_dsn'] = '';
$rcmail_config['password_query'] = 'UPDATE accountuser SET password = ENCRYPT(%p) WHERE username = %u LIMIT 1';
Please help!

SKaero

If your using CPanel you need to use the cpanel driver not the SQL driver.

Anatoliy

#2
Yes!!!
It works.... thanks so much!

SKaero

You most likely have the theme incorrect, when you go into your CPanel look at the url it should look something like this:
http://domain.com:2082/frontend/x3/index.htmlThis is the data needed:
http://[B]Host[/B]:[B]Port[/B]/frontend/[B]Theme[/B]/index.htmlThis is what it should look like in the config file:
$rcmail_config['password_cpanel_host'] = '[B]Host[/B]';

$rcmail_config['password_cpanel_username'] = 'Your CPanel username';

$rcmail_config['password_cpanel_password'] = 'Your Cpanel password';

$rcmail_config['password_cpanel_port'] = [B]Port[/B];

$rcmail_config['password_cpanel_ssl'] = true;

$rcmail_config['password_cpanel_theme'] = '[B]Theme[/B]';

Anatoliy

#4
Thanks again. CPanel driver works just fine for one domain.
However, I need now to use Roundcube for multiple domains and I have it setup to fully work this way except of the password plugin. It changes only passwords of the domain mentioned in cPanel driver settings even when I set the main root hosting account that gives cPanel access to all sub accounts under it. I guess I need a different driver to use in order for people logged into different email accounts under different servers to be able to change their passwords, but I have no clue how to use any other driver. Or can I set access to three or more domains under cPanel driver? Any help? Thank you.

SKaero

If all of the accounts are on the same web server try using this plugin: http://www.roundcubeforum.net/7-third-party-contributions/46-api-based-plugins/6019-cpanel-password-plugin-update.html it uses CPanel's web mail interface to change the password witch if there all of the same server should work. Otherwise we will have to to do some tweaking to make it work with your configuration.

raja

I tried to install hmail change password plugin but it enable to change the password which i came to know it only works for the hosting administrators.

i currently using bluehost and i need a plugin so that email user can change his password.

please help me thanks in advance :)

Anatoliy

#7
Beautiful!!! It works great and it does not require for admin info to sit in config file. Thanks a million for your help! Cannot thank you enough!