Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: raidenii on May 04, 2011, 09:03:26 AM

Title: Password plugin + Dovecot 2.0 + Postfixadmin problem
Post by: raidenii on May 04, 2011, 09:03:26 AM
Hi all,

I'm trying to use password plugin on my mail system with Postfix 2.8.2+Dovecot 2.0.12+Postfixadmin 2.1.0 but no avail. Each time when I try to update password it always says "Could not save password" and there's no log in roundcube for this.

Postfixadmin uses md5crypt so I use MD5-CRYPT here.

Here are some of my settings:
$rcmail_config['password_driver'] = 'sql';
$rcmail_config['password_db_dsn'] = 'mysqli://postfix:xxx@localhost/postfix';
$rcmail_config['password_query'] = 'UPDATE `mailbox` SET `password`= %D WHERE `username`= %u LIMIT 1';
$rcmail_config['password_dovecotpw'] = '/usr/local/bin/doveadm pw';
$rcmail_config['password_dovecotpw_method'] = 'MD5-CRYPT';
$rcmail_config['password_dovecotpw_with_method'] = false;
Title: Password plugin + Dovecot 2.0 + Postfixadmin problem
Post by: SKaero on May 04, 2011, 11:10:45 AM
What's in your error log?
Title: Password plugin + Dovecot 2.0 + Postfixadmin problem
Post by: schickel on May 26, 2011, 08:13:59 AM
Hi,

Quote from: raidenii;34643
$rcmail_config['password_query'] = 'UPDATE `mailbox` SET `password`= %D WHERE `username`= %u LIMIT 1';

try it with:


$rcmail_config['password_query'] = 'UPDATE mailbox SET password=%c WHERE username=%u';