| Summary | timsieved backend: Shared rule modification doesn't |
| Queue | Ingo |
| Queue Version | HEAD |
| Type | Bug |
| State | Assigned |
| Priority | 2. Medium |
| Owners | Jan Schneider <jan (at) horde (dot) org> |
| Requester | gentz (at) equinux (dot) de |
| Created | 03/03/2008 (69 days ago) |
| Due | |
| Updated | 04/02/2008 (39 days ago) |
| Assigned | 03/04/2008 (68 days ago) |
| Resolved | |
| Attachments | |
| Milestone | 1.2 |
| Patch |
Would it help to sponsor a bounty to have this bug resolved as soon as possible?We desperately need the ability to set vacation messages for all users by the admin.
Priority ⇒ 2. Medium
Assigned to Jan Schneider
Queue ⇒ Ingo
Summary ⇒ timsieved backend: Shared rule modification doesnt't work
Type ⇒ Bug
Priority ⇒ 3. High
State ⇒ Unconfirmed
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,