6.0.0-beta1
9/24/25

[#14529] Add file based Group driver
Summary Add file based Group driver
Queue Horde Framework Packages
Type Enhancement
State Resolved
Priority 1. Low
Owners jan (at) horde (dot) org
Requester thomas.jarosch (at) intra2net (dot) com
Created 12/02/2016 (3218 days ago)
Due
Updated 01/29/2018 (2795 days ago)
Assigned
Resolved 01/29/2018 (2795 days ago)
Milestone
Patch Yes

History
01/29/2018 05:15:29 PM Jan Schneider Comment #6
Assigned to Jan Schneider
State ⇒ Resolved
Reply to this comment
Thanks!
01/29/2018 05:10:34 PM Git Commit Comment #5 Reply to this comment
Changes have been made in Git (FRAMEWORK_5_2):

commit cb5bdf2bd93a87c7c36f93bb15481c4ceb514fbe
Author: Thomas Jarosch <thomas.jarosch@intra2net.com>
Date:   Mon, 29 Jan 2018 18:08:16 +0100

Add file based group driver (#14529)

It allows you to use /etc/group or a custom file
as provider for the Horde group information.

  A lib/Horde/Group/File.php
  A test/Horde/Group/FileTest.php

https://github.com/horde/Group/commit/cb5bdf2bd93a87c7c36f93bb15481c4ceb514fbe
01/29/2018 05:01:32 PM Git Commit Comment #4 Reply to this comment
Changes have been made in Git (master):

commit 79dc11638847806191b0c41efa713b2fc5517359
Author: Thomas Jarosch <thomas.jarosch@intra2net.com>
Date:   Mon, 29 Jan 2018 17:16:47 +0100

Add file based group driver (#14529)

It allows you to use /etc/group or a custom file
as provider for the Horde group information.

  A lib/Horde/Group/File.php
  A test/Horde/Group/FileTest.php

https://github.com/horde/Group/commit/79dc11638847806191b0c41efa713b2fc5517359
12/02/2016 02:31:28 PM Thomas Jarosch Comment #3 Reply to this comment
Also temporarily available as github branch:
https://github.com/thomasjfox/horde/tree/Horde_Group-add-file-driver
Pull request can be created if needed.
the github branch has been updated with the needed changes to package.xml.

12/02/2016 02:21:00 PM Thomas Jarosch Comment #2
Patch ⇒ Yes
New Attachment: Horde_Group_File-v1.patch Download
Reply to this comment
The patch (after allocating the bugs.horde.org ticket id).

Also temporarily available as github branch:
https://github.com/thomasjfox/horde/tree/Horde_Group-add-file-driver
Pull request can be created if needed.

btw: Are code contributions preferred via bugs.horde.org or is github ok, too?
The page
     https://www.horde.org/development/contribute
doesn't mention github yet.

12/02/2016 02:15:21 PM Thomas Jarosch Comment #1
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ Add file based Group driver
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ No
State ⇒ New
Reply to this comment
Hello together,

attached is a new file based group driver. It allows you to use 
/etc/group or a custom file as provider for the Horde group information.

The driver itself went through three incarnations:
- around 2008 created as quick proof of concept
- turned into a site specific driver in 2012 by Jan
- refactored to be a generic driver with unit tests by me today

Some design considerations:
- group names are the group ids by default. This driver
   is mainly used with IMAP folder ACLs based on group name.

   The newly added 'use_gid' feature allows you to use
   the GIDs from the group file instead if ever wanted.

- Horde_Cache based caching is currently disabled as it would
   need way more complex logic to invalidate the cache on changes
   to the group file without much (performance) gain.

Please let me know what you think.

Cheers,
Thomas

Saved Queries