From 9da5eddead7b962453dcdc1265b5959e7bbbf649 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Wed, 01 Jul 2009 10:21:46 -0400
Subject: [PATCH] Allow to configure additional arguments for the saslpasswd2 call
---
plugins/password/drivers/sasl.php | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/plugins/password/drivers/sasl.php b/plugins/password/drivers/sasl.php
index 0f762e5..b1e9ba4 100644
--- a/plugins/password/drivers/sasl.php
+++ b/plugins/password/drivers/sasl.php
@@ -20,8 +20,9 @@
{
$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);
--
Gitblit v1.9.1