[Tickets #6366] timsieved backend: Shared rule modification doesnt't work
bugs at horde.org
bugs at horde.org
Mon Mar 3 22:34:40 UTC 2008
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/6366
-----------------------------------------------------------------------
Ticket | 6366
Created By | gentz at equinux.de
Summary | timsieved backend: Shared rule modification doesnt't work
Queue | Ingo
Version | HEAD
Type | Bug
State | Unconfirmed
Priority | 3. High
Milestone |
Patch |
Owners |
-----------------------------------------------------------------------
gentz at equinux.de (2008-03-03 17:34) wrote:
Apparently, the timsieved driver does not work when shares=true,
hordeauth=false and the admin credentials are configured in backends.php.
Horde is configured to authenticate against IMAP.
I configured backends.php like that:
$backends['sieve'] = array(
'driver' => 'timsieved',
'preferred' => 'xxxxxxxxxxxxxxxxxx',
'hordeauth' => false,
'params' => array(
// Hostname of the timsieved server
'hostspec' => 'xxxxxxxxxxxxxxxxx',
// Login type of the server
'logintype' => 'PLAIN',
// Enable/disable TLS encryption
'usetls' => false,
// Port number of the timsieved server
'port' => 2000,
// Name of the sieve script
'scriptname' => 'ingo',
// The following settings can be used to specify an
administration
// user to update all users' scripts. If you want to use an admin
// user, you also need to disable 'hordeauth' above. You have to
use
// an admin user if you want to use shared rules.
'username' => 'adminuser',
'password' => 'xxxxx'
),
'script' => 'sieve',
'scriptparams' => array(),
'shares' => true
);
It still used the IMAP credentials to log in. I had a look a the timsieved
Driver and applied the patch below. Then I changed the config to state
"admin" instead of "username" and "adminpassword" instead of "password".
With these modifications I succeeded in authenticating at least. However it
looks like as effective user id, always my IMAP user ID is used, so I'm not
able to modify other user's sieve rules. In the ruleset chooser my account
is displayed twice, once with value ":myusername" and once with
"sieve:myusername".
Patch against: timsieved.php,v 1.15.10.9 2008/01/02 11:32:09 jan Exp $
64a65
> $pw = $this->_params['password'];
66a68
> $pw = $this->_params['adminpassword'];
69c71,72
< $this->_params['password'],
---
> # $this->_params['password'],
> $pw,
More information about the bugs
mailing list