Author Topic: [SOLVED] Plugin password -> DB Error: MBD2_Driver_mailsql missing  (Read 5096 times)

Offline webbruno

  • Newbie
  • *
  • Posts: 2
Hi all,

Whenever I try to update my password using the password plugins by adding on my main.inc.php file the following line:

Code: [Select]
$rcmail_config['plugins'] = array("password");

An error pops up saying there was an error updating the password. Here follows my logs/errors file:

Code: [Select]
[11-Oct-2012 16:28:27 UTC] MDB2 Error: not found (-4): unable to find package 'MDB2_Driver_mailsql?new_link=true' file 'MDB2/Driver/mailsql?new/link=true.php'

[11-Oct-2012 16:28:27 +0000]: DB Error: unable to find package 'MDB2_Driver_mailsql?new_link=true' file 'MDB2/Driver/mailsql?new/link=true.php' in /var/www/zemarestaleiro.com.br/htdocs/roundcube/program/include/rcube_mdb2.php on line 107 (POST /?_task=settings&_action=plugin.password-save?_task=&_action=)

Here follows the relevant part of my password/config.inc.php file:

Code: [Select]
// Password Plugin options

$rcmail_config['password_driver'] = 'sql';
$rcmail_config['password_confirm_current'] = true;
$rcmail_config['password_minimum_length'] = 5;
$rcmail_config['password_require_nonalpha'] = false;
$rcmail_config['password_log'] = false;
$rcmail_config['password_login_exceptions'] = null;

// SQL Driver options

$rcmail_config['password_db_dsn'] = 'mailsql';
$rcmail_config['password_query'] = 'Update mailsql.users set crypt = %c where email=%u';
$rcmail_config['password_idn_ascii'] = false;

$rcmail_config['password_dovecotpw_method'] = 'CRAM-MD5';
$rcmail_config['password_dovecotpw_with_method'] = false;
$rcmail_config['password_hash_algorithm'] = 'sha1';
$rcmail_config['password_hash_base64'] = false;

What am I possibly doing wrong?

Thanks in advance for all the help!
« Last Edit: October 11, 2012, 03:48:07 PM by webbruno »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Plugin password -> DB Error: MBD2_Driver_mailsql missing
« Reply #1 on: October 11, 2012, 03:44:04 PM »
The $rcmail_config['password_db_dsn'] should be formated as follows:
Code: [Select]
db_provider://user:password@host/database

I.E.:
Code: [Select]
mysql://roundcube:pass@localhost/roundcubemail

Offline webbruno

  • Newbie
  • *
  • Posts: 2
Re: Plugin password -> DB Error: MBD2_Driver_mailsql missing
« Reply #2 on: October 11, 2012, 03:47:35 PM »
Wow! That was fast! It did the trick! I'm very grateful for the answer! Cheers