Hi all,
I've worked on a patch to add the functionality to dansguardian to support
system groups for filter groups.
The patch is in several ways different to the one by Oli Comber that can be
found at http://dansguardian.org/?page=extras
Currently in dansguardian there are two configuration options defining the use
of filtergroups:
filtergroups = <number of groups>
filtergroupslist = '<file with mapping username -> filter group>'
The filtergroupslist file contains for all users a mapping to the filtergroup
they belong to.
Instead of defining these filter groups user by user dansguardian could us
system groups that are mapped to a filter group. The patch adds a
configuration option
usefiltersystemgroups=on
If set the content of the file filtergrouplist is read as a list of system
groups. The groups are mapped in sequence to the filter groups. E.g.:
group1 -> filter group 1
group2 -> filter group 2
...
When a user authenticates the groups are checked in sequence if the user is a
member. The index of the first group that matches is return as the number of
the filter group.
The patch can be found at:
http://pastebin.com/me966a4b
In my tests this patch works well and does not break anything as long as the
configuration option usefiltersystemgroups is not set
Do you think it might be possible to add this patch to dansguardian?
If you have any questions or some modifications need to be made, just let me
know.
best regards
Andreas
--
Andreas Büsching
Open Source Software Engineer
Univention GmbH
Linux for your business
Mary-Somerville-Str.1
28359 Bremen
Tel. : +49 421 22232-0
Fax : +49 421 22232-99
<buesching@...>
http://www.univention.de
Geschäftsführer: Peter H. Ganten
HRB 20755 Amtsgericht Bremen
Steuer-Nr.: 71-597-02876
[Non-text portions of this message have been removed]