[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#3756) dyngroup,dynlist merge

On Tue, 2005-11-29 at 04:29 +0000, quanah@stanford.edu wrote:
> Fine by me, I only plan to use one way of doing groups (I assume you mean 
> multiple groups are possible, but only with one defined method).

Too late :)  More than one attr pair is allowed now.  Unfortunately I
haven't been able to preserve neither dynlist nor dyngroup configuration
style to do this; it would have made configuration handling a mess even
without back-config.  Now the configuration is much similar to that of
dyngroup; I introduced the notion of "dynlist-attrset" in analogy to
dyngroup's "attrpair":

dynlist-attrset	<group-oc> <URL-ad> [<member-ad>]

so that 

- "dynlist-attrset <group-oc> <URL-ad>": original dynlist behavior;

- "dynlist-attrset <group-oc> <URL-ad> <member-ad>": dyngroup emulation.

I think I should be able to preserve the style (and even the overlay
name) of "dyngroup" when parsing from slapd.conf, so that old "dyngroup"
users won't even have to update (they'll get a couple of warnings...),
but not the original syntax of "dynlist".

One can have multiple "dynlist-attrset" lines, with the caveat that
right now there's no check about repetitions, so the "right" one is
selected on a first match approach, and duplications are not checked
(they may be in the future), so

dynlist-attrset groupOfURLs memberURL
dynlist-attrset groupOfURLs memberURL member

will likely never behave as a dynamic group because the first rule
catches all.

I have a patch that enables dynlist to take over dyngroup semantics
transparently, when configured as

overlay dyngroup
attrpair member memberURL
attrpair uniqueMember memberURL
# [...]

However, this requires to disallow, at configure, the two from building
together.  I understand that dyngroup will be removed as soon as we
believe dynlist is a valid replacement, but with my patch we cannot
compare them because they can no longer coexist (well, they can if built
as modules and never loaded together...) so I want to play with it a bit
more before forcing everyone into making a decision...


Ing. Pierangelo Masarati
Responsabile Open Solution

SysNet s.n.c.
Via Dossi, 8 - 27100 Pavia - ITALIA
Office:   +39.02.23998309          
Mobile:   +39.333.4963172
Email:    pierangelo.masarati@sys-net.it