6.0.0-alpha12
6/12/25

[#6366] timsieved backend: Shared rule modification doesn't
Summary timsieved backend: Shared rule modification doesn't
Queue Ingo
Queue Version HEAD
Type Bug
State Not A Bug
Priority 2. Medium
Owners
Requester gentz (at) equinux (dot) de
Created 03/03/2008 (6310 days ago)
Due
Updated 05/24/2008 (6228 days ago)
Assigned 05/23/2008 (6229 days ago)
Resolved 05/24/2008 (6228 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
05/24/2008 04:55:39 PM Jan Schneider Comment #6
Taken from Jan Schneider
State ⇒ Not A Bug
Reply to this comment
You have to enable 'shares' for this to happen, and the users have to 
assign permissions for their rules to the user who is going to updated 
the rules for them.

For further questions, please use the mailing list.
05/23/2008 07:20:36 PM Chuck Hagenbuch Comment #5
State ⇒ Assigned
Reply to this comment
Assigning to Jan for classification as a bug or misunderstanding of 
the feature.
05/20/2008 01:58:51 PM gentz (at) equinux (dot) de Comment #4 Reply to this comment
Maybe I don't understand what this feature is actually doing. Couldn't 
find any documentation on that. What I'm trying to do is that I can 
log in as an admin in order to change the vacation settings of a user 
that is already out of office. The admin does not know the users 
passwords. Is that possible with this feature?

I never got it to display a list of users in the popup menu.
I can't reproduce this. With the settings you described, Ingo is
correctly authenticating as the user specified in 'username'. It is
*authorizing* as the current user though, but that's obviously the
expected behavior.
05/17/2008 08:19:19 PM Jan Schneider Milestone ⇒
 
05/17/2008 08:19:10 PM Jan Schneider Comment #3
State ⇒ Feedback
Reply to this comment
I can't reproduce this. With the settings you described, Ingo is 
correctly authenticating as the user specified in 'username'. It is 
*authorizing* as the current user though, but that's obviously the 
expected behavior.
04/02/2008 07:03:51 PM Chuck Hagenbuch Summary ⇒ timsieved backend: Shared rule modification doesn't
 
04/02/2008 02:57:41 PM gentz (at) equinux (dot) de Comment #2 Reply to this comment
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.
03/06/2008 12:39:40 AM Jan Schneider Priority ⇒ 2. Medium
Milestone ⇒ 1.2
 
03/04/2008 09:42:07 PM Chuck Hagenbuch Assigned to Jan Schneider
State ⇒ Assigned
 
03/03/2008 10:34:40 PM gentz (at) equinux (dot) de Comment #1
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ timsieved backend: Shared rule modification doesnt't work
Queue ⇒ Ingo
State ⇒ Unconfirmed
Reply to this comment
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,

Saved Queries