summaryrefslogtreecommitdiff
path: root/plugins/password/drivers/sasl.php
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2009-07-01 14:21:46 +0000
committerthomascube <thomas@roundcube.net>2009-07-01 14:21:46 +0000
commit9da5eddead7b962453dcdc1265b5959e7bbbf649 (patch)
tree6fc0a3ce97b0667f6f6c42e3ef77d37735cb95e8 /plugins/password/drivers/sasl.php
parent645103db1133c1a2372f3b82797def5887a6dc0b (diff)
Allow to configure additional arguments for the saslpasswd2 call
Diffstat (limited to 'plugins/password/drivers/sasl.php')
-rw-r--r--plugins/password/drivers/sasl.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/password/drivers/sasl.php b/plugins/password/drivers/sasl.php
index 0f762e50d..b1e9ba487 100644
--- a/plugins/password/drivers/sasl.php
+++ b/plugins/password/drivers/sasl.php
@@ -20,8 +20,9 @@ function password_save($currpass, $newpass)
{
$curdir = realpath(dirname(__FILE__));
$username = escapeshellcmd($_SESSION['username']);
+ $args = rcmail::get_instance()->config->get('password_saslpasswd_args', '');
- if ($fh = popen("$curdir/chgsaslpasswd -p $username", 'w')) {
+ if ($fh = popen("$curdir/chgsaslpasswd -p $args $username", 'w')) {
fwrite($fh, $newpass."\n");
$code = pclose($fh);