From 6f41f0069ab125df38e858ccb48a9e4e7f9d2296 Mon Sep 17 00:00:00 2001 From: John Bieling Date: Tue, 19 May 2015 15:39:14 +0200 Subject: [PATCH] Allow to override password, but keep username (auth_cid/auth_pw) There is a managesieve server from afterlogic, which allows to authenticate by providing a "master password" for any given username. This patch allows to use the auth_pw config option to make this work (auth_cid remains null) --- plugins/managesieve/lib/Roundcube/rcube_sieve.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/managesieve/lib/Roundcube/rcube_sieve.php b/plugins/managesieve/lib/Roundcube/rcube_sieve.php index 59a7bc134..898f694a3 100644 --- a/plugins/managesieve/lib/Roundcube/rcube_sieve.php +++ b/plugins/managesieve/lib/Roundcube/rcube_sieve.php @@ -77,6 +77,8 @@ class rcube_sieve if (!empty($auth_cid)) { $authz = $username; $username = $auth_cid; + } + if (!empty($auth_pw)) { $password = $auth_pw; }