Roundcube Community Forum

 

password plugin

Started by sunnydt, December 01, 2009, 07:31:11 PM

Previous topic - Next topic

sunnydt

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.

SKaero

Did you also setup the $rcmail_config['password_db_dsn'] and $rcmail_config['password_query'] settings?

sunnydt

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.

sunnydt

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)';

SKaero

What is your mail server the password_query is most likely wrong.


SKaero

No what is the mail server back end?

sunnydt

How could I find out? or I guess I can just ask my host.

SKaero

What Control Panel are you using?

sunnydt


SKaero

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']

sunnydt

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';

SKaero

box687.bluehost.com:2083 isn't a cpanel login, try your domain instead.

sunnydt

yeaaaa it works. I changed it to mydomain.com and my port was also wrong. thank you so much. :)