Author Topic: password plugin  (Read 4476 times)

Offline sunnydt

  • Jr. Member
  • **
  • Posts: 56
password plugin
« 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.

Online SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
password plugin
« Reply #1 on: December 02, 2009, 05:16:40 AM »
Did you also setup the $rcmail_config['password_db_dsn'] and $rcmail_config['password_query'] settings?

Offline sunnydt

  • Jr. Member
  • **
  • Posts: 56
password plugin
« Reply #2 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.

Offline sunnydt

  • Jr. Member
  • **
  • Posts: 56
password plugin
« Reply #3 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)';

Online SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
password plugin
« Reply #4 on: December 02, 2009, 08:48:30 AM »
What is your mail server the password_query is most likely wrong.

Offline sunnydt

  • Jr. Member
  • **
  • Posts: 56
password plugin
« Reply #5 on: December 02, 2009, 09:15:09 AM »
it is mail.mydomain.com

Online SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
password plugin
« Reply #6 on: December 02, 2009, 09:26:41 AM »
No what is the mail server back end?

Offline sunnydt

  • Jr. Member
  • **
  • Posts: 56
password plugin
« Reply #7 on: December 02, 2009, 09:31:28 AM »
How could I find out? or I guess I can just ask my host.

Online SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
password plugin
« Reply #8 on: December 02, 2009, 09:32:20 AM »
What Control Panel are you using?

Offline sunnydt

  • Jr. Member
  • **
  • Posts: 56
password plugin
« Reply #9 on: December 02, 2009, 09:34:20 AM »
I am using cpanel

Online SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
password plugin
« Reply #10 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']

Offline sunnydt

  • Jr. Member
  • **
  • Posts: 56
password plugin
« Reply #11 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';

Online SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
password plugin
« Reply #12 on: December 02, 2009, 09:54:00 AM »
box687.bluehost.com:2083 isn't a cpanel login, try your domain instead.

Offline sunnydt

  • Jr. Member
  • **
  • Posts: 56
password plugin
« Reply #13 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. :)