Roundcube Community Forum

Release Support => Pending Issues => Topic started by: sunnydt on December 01, 2009, 07:31:11 PM

Title: password plugin
Post by: sunnydt on December 01, 2009, 07:31:11 PM
I have tried all day to set this up but it only says "could not save new password" when I try to change it. I have changed my main.inc.php file to:
$rcmail_config['plugins'] = array('password');
and have the password config file set to "sql"
Is there something more I need to do to make this work?
Thanks for any help.
Title: password plugin
Post by: SKaero on December 02, 2009, 05:16:40 AM
Did you also setup the $rcmail_config['password_db_dsn'] and $rcmail_config['password_query'] settings?
Title: password plugin
Post by: sunnydt on December 02, 2009, 08:38:16 AM
I did try that once but probably had it wrong. I removed them and left the default because it said it uses the info from the db file. what exactly should I fill in for these?
Specifically the query settings. Thanks for your help.
Title: password plugin
Post by: sunnydt on December 02, 2009, 08:43:12 AM
right now this is what I have:

// PEAR database DSN for performing the query. By default
// Roundcube DB settings are used.
$rcmail_config['password_db_dsn'] = 'mysql://USERNAME:PASSWORD@localhost/DBNAME';

// Default: "SELECT update_passwd(%c, %u)"
$rcmail_config['password_query'] = 'SELECT update_passwd(%c, %u)';
Title: password plugin
Post by: SKaero on December 02, 2009, 08:48:30 AM
What is your mail server the password_query is most likely wrong.
Title: password plugin
Post by: sunnydt on December 02, 2009, 09:15:09 AM
it is mail.mydomain.com
Title: password plugin
Post by: SKaero on December 02, 2009, 09:26:41 AM
No what is the mail server back end?
Title: password plugin
Post by: sunnydt on December 02, 2009, 09:31:28 AM
How could I find out? or I guess I can just ask my host.
Title: password plugin
Post by: SKaero on December 02, 2009, 09:32:20 AM
What Control Panel are you using?
Title: password plugin
Post by: sunnydt on December 02, 2009, 09:34:20 AM
I am using cpanel
Title: password plugin
Post by: SKaero on December 02, 2009, 09:39:38 AM
You need to set $rcmail_config['password_driver'] to cpanel and setup:
$rcmail_config['password_cpanel_host']
$rcmail_config['password_cpanel_username']
$rcmail_config['password_cpanel_password']
$rcmail_config['password_cpanel_port']
$rcmail_config['password_cpanel_ssl']
$rcmail_config['password_cpanel_theme']
Title: password plugin
Post by: sunnydt on December 02, 2009, 09:47:04 AM
ok just did this and still get "could not save new password" and I did set the driver to cpanel

// The cPanel Host name
$rcmail_config['password_cpanel_host'] = 'box687.bluehost.com';

// The cPanel admin username
$rcmail_config['password_cpanel_username'] = 'cpanelusername';

// The cPanel admin password
$rcmail_config['password_cpanel_password'] = 'cpanelpassword';

// The cPanel port to use
$rcmail_config['password_cpanel_port'] = 2083;

// Using ssl for cPanel connections?
$rcmail_config['password_cpanel_ssl'] = false;

// The cPanel theme in use
$rcmail_config['password_cpanel_theme'] = 'bluehost';
Title: password plugin
Post by: SKaero on December 02, 2009, 09:54:00 AM
box687.bluehost.com:2083 isn't a cpanel login, try your domain instead.
Title: password plugin
Post by: sunnydt on December 02, 2009, 10:01:06 AM
yeaaaa it works. I changed it to mydomain.com and my port was also wrong. thank you so much. :)