Re: Bulk deletion of mailbox ACLs under Cyrus 2.4.4

2011-09-06 Thread Mark Cave-Ayland
On 06/09/11 13:29, Jeroen van Meeuwen (Kolab Systems) wrote: > Uch, mind where I said "just that", I neglected to mention the attached > script only removes ACL entries for which the identifier (assuming it's > an individual identifier, admittedly) has no corresponding mailbox. > > > My apologies

Re: Bulk deletion of mailbox ACLs under Cyrus 2.4.4

2011-09-06 Thread Jeroen van Meeuwen (Kolab Systems)
Jeroen van Meeuwen (Kolab Systems) wrote: > Bron Gondwana wrote: > > The correct way[tm] is to iterate over all the mailboxes and do a > > "setacl" for each one you want to change, probably using an external > > script that talks IMAP. > > While obviously needing some work, I've attached a script

Re: Bulk deletion of mailbox ACLs under Cyrus 2.4.4

2011-09-06 Thread Jeroen van Meeuwen (Kolab Systems)
Bron Gondwana wrote: > The correct way[tm] is to iterate over all the mailboxes and do a > "setacl" for each one you want to change, probably using an external > script that talks IMAP. > While obviously needing some work, I've attached a script that -I think- does just that. Kind regards, Jer

Re: Bulk deletion of mailbox ACLs under Cyrus 2.4.4

2011-09-04 Thread Mark Cave-Ayland
On 03/09/11 12:50, Mark Cave-Ayland wrote: > Thanks for the heads up. Does that mean I should invoke reconstruct on > all the mailboxes whose permissions I've changed in this way in order to > bring the backup ACLs back in line with the mailboxes.db changes? Sigh. So as soon as I ran reconstruct

Re: Bulk deletion of mailbox ACLs under Cyrus 2.4.4

2011-09-03 Thread Mark Cave-Ayland
On 03/09/11 06:16, Bron Gondwana wrote: >> Just for the archives: I managed to find an alternative solution to my >> problem. I ended up analysing the output of ctl_mboxlist -d and then >> writing a bit of perl to generate an output file with the same format >> for just the mailboxes I was interes

Re: Bulk deletion of mailbox ACLs under Cyrus 2.4.4

2011-09-02 Thread Bron Gondwana
On Fri, Sep 02, 2011 at 05:57:38PM +0100, Mark Cave-Ayland wrote: > > I've also tried using the "anyone"/"all" aliases instead of "*" but that > > doesn't seem to work either - is anyone able to point me in the right > > direction as to the correct syntax to completely remove all ACLs for all > > u

Re: Bulk deletion of mailbox ACLs under Cyrus 2.4.4

2011-09-02 Thread Mark Cave-Ayland
On 31/08/11 16:20, Mark Cave-Ayland wrote: > Hi all, > > I'm currently trying to recursively remove all ACLs from part of a Cyrus > tree so I can replace them with newer ones based upon group membership > rather than individual users. However I can't seem to get this to work > at the moment using

Bulk deletion of mailbox ACLs under Cyrus 2.4.4

2011-08-31 Thread Mark Cave-Ayland
Hi all, I'm currently trying to recursively remove all ACLs from part of a Cyrus tree so I can replace them with newer ones based upon group membership rather than individual users. However I can't seem to get this to work at the moment using a wildcard under cyradm: localhost> cm public.mcate