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 |
Assigned to Jan Schneider
State ⇒ Resolved
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
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
https://github.com/thomasjfox/horde/tree/Horde_Group-add-file-driver
Pull request can be created if needed.
Patch ⇒ Yes
New Attachment: Horde_Group_File-v1.patch
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.
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ Add file based Group driver
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ No
State ⇒ New
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