Issue 6536 - Autogroup overlay enhancement
Summary: Autogroup overlay enhancement
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: 2.4.21
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-27 10:39 UTC by Raphael Ouazana
Modified: 2014-08-01 21:04 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Raphael Ouazana 2010-04-27 10:39:29 UTC
Full_Name: Raphael Ouazana
Version: 2.4.21
OS: Linux
URL: ftp://ftp.openldap.org/incoming/raphael-ouazana-autogroup-100427.patch
Submission from: (NULL) (213.41.232.151)


Hi,

The attached patch allow the autogroup overlay to handle correctly the attr part
of the URL ldap://dc=example,dc=com?attr?sub?(filter). Before this patch, the
attr part was simply ignored. Now the group entry is populated by the values of
the attribute attr in the resulting entries.

Implementation details:
Some cases (modify, delete) are harder to handle when you store values instead
of dn. In this cases the overlay try to detect if groups have been modified and
then simply refresh them. This can cause performance hits if the search
specified by the URL deals with an important number of entries.

Legal notice:
This patch file is derived from OpenLDAP Software. All of the modifications to
OpenLDAP Software represented in this following patch were developed by Raphael
Ouazana raphael.ouazana@linagora.com. These modifications are not subject to
any
license of Linagora.

The attached modifications to OpenLDAP Software are subject to the following
notice:
Copyright 2010 Raphael Ouazana, Linagora
Redistribution and use in source and binary forms, with or without
modification,
are permitted only as authorized by the OpenLDAP Public License. 
Comment 1 Howard Chu 2010-06-02 01:44:49 UTC
raphael.ouazana@linagora.com wrote:
> Full_Name: Raphael Ouazana
> Version: 2.4.21
> OS: Linux
> URL: ftp://ftp.openldap.org/incoming/raphael-ouazana-autogroup-100427.patch
> Submission from: (NULL) (213.41.232.151)
>
>
> Hi,
>
> The attached patch allow the autogroup overlay to handle correctly the attr part
> of the URL ldap://dc=example,dc=com?attr?sub?(filter). Before this patch, the
> attr part was simply ignored. Now the group entry is populated by the values of
> the attribute attr in the resulting entries.
>
> Implementation details:
> Some cases (modify, delete) are harder to handle when you store values instead
> of dn. In this cases the overlay try to detect if groups have been modified and
> then simply refresh them. This can cause performance hits if the search
> specified by the URL deals with an important number of entries.
>
> Legal notice:
> This patch file is derived from OpenLDAP Software. All of the modifications to
> OpenLDAP Software represented in this following patch were developed by Raphael
> Ouazana raphael.ouazana@linagora.com. These modifications are not subject to
> any
> license of Linagora.
>
> The attached modifications to OpenLDAP Software are subject to the following
> notice:
> Copyright 2010 Raphael Ouazana, Linagora
> Redistribution and use in source and binary forms, with or without
> modification,
> are permitted only as authorized by the OpenLDAP Public License.

The code patch looks OK to me, but could you also provide a patch for the 
README file summarizing this new behavior? I'm not too keen on supporting 
groups of anything other than DNs in general, but I see the usefulness of it. 
However the potential performance hit can be quite a concern.

-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/

Comment 2 Raphael Ouazana 2010-06-02 09:31:18 UTC
Le Mer 2 juin 2010 03:44, Howard Chu a écrit :
> The code patch looks OK to me, but could you also provide a patch for the
> README file summarizing this new behavior? I'm not too keen on supporting
> groups of anything other than DNs in general, but I see the usefulness of
> it.
> However the potential performance hit can be quite a concern.

Thank you for your feedback. Here is the patch of the README file:
ftp://ftp.openldap.org/incoming/raphael-ouazana-autogroup-readme-1000602.patch

Regards,
Raphaël Ouazana.

Comment 3 Howard Chu 2010-07-28 18:09:04 UTC
changed notes
changed state Open to Test
moved from Incoming to Software Enhancements
Comment 4 Quanah Gibson-Mount 2010-12-17 09:30:20 UTC
changed notes
changed state Test to Release
Comment 5 Quanah Gibson-Mount 2011-02-14 12:35:05 UTC
changed notes
changed state Release to Closed
Comment 6 OpenLDAP project 2014-08-01 21:04:54 UTC
applied to HEAD
applied to RE24