roundcubemail/roundcubemail-1.0.5-password-postfix-integration.patch
Silvan Calarco 09aedb2e28 require pear-Net_Sieve
patch password plugin config.php.dist for easy change password integration with postfix/mysql [release 1.0.5-3mamba;Thu Mar 12 2015]
2024-01-05 17:28:03 +01:00

14 lines
745 B
Diff

--- roundcubemail-1.0.5-dep/plugins/password/config.inc.php.dist.orig 2015-03-12 12:17:58.762644322 +0100
+++ roundcubemail-1.0.5-dep/plugins/password/config.inc.php.dist 2015-03-12 12:20:18.255595645 +0100
@@ -62,6 +62,10 @@
// Default: "SELECT update_passwd(%c, %u)"
$config['password_query'] = 'SELECT update_passwd(%c, %u)';
+// Postfix/Postfixadmin integration
+//$config['password_db_dsn'] = 'mysql://user:pass@localhost/db';
+//$config['password_query'] = 'UPDATE mailbox SET password=%c,modified=now() WHERE username=%u LIMIT 1';
+
// By default the crypt() function which is used to create the '%c'
// parameter uses the md5 algorithm. To use different algorithms
// you can choose between: des, md5, blowfish, sha256, sha512.