Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: webbruno on October 11, 2012, 03:35:04 PM

Title: [SOLVED] Plugin password -> DB Error: MBD2_Driver_mailsql missing
Post by: webbruno on October 11, 2012, 03:35:04 PM
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!
Title: Re: Plugin password -> DB Error: MBD2_Driver_mailsql missing
Post by: SKaero 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
Title: Re: Plugin password -> DB Error: MBD2_Driver_mailsql missing
Post by: webbruno on October 11, 2012, 03:47:35 PM
Wow! That was fast! It did the trick! I'm very grateful for the answer! Cheers