Skip to content

Commit

Permalink
Allow to override password, but keep username (auth_cid/auth_pw)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
jobisoft committed May 19, 2015
1 parent c4ad7ed commit 6f41f00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/managesieve/lib/Roundcube/rcube_sieve.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ public function __construct($username, $password='', $host='localhost', $port=20
if (!empty($auth_cid)) {
$authz = $username;
$username = $auth_cid;
}
if (!empty($auth_pw)) {
$password = $auth_pw;
}

Expand Down

0 comments on commit 6f41f00

Please sign in to comment.