Issue 7847 - syncrepl attrs should allow to explicitly exclude attributes
Summary: syncrepl attrs should allow to explicitly exclude attributes
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: documentation (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-03 11:26 UTC by Michael Ströder
Modified: 2014-10-23 07:28 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 Michael Ströder 2014-05-03 11:26:14 UTC
Full_Name: 
Version: 
OS: 
URL: 
Submission from: (NULL) (79.227.159.237)


In some cases it would be handy to explicitly exclude attributes from getting
replicated with parameter 'attrs' in the syncrepl statements.

Example for working around slapo-accesslog's operational attributes getting
replicated:

syncrepl
  [..]
  attrs="*,+,!allowedAttributes,!allowedAttributesEffective,!allowedChildClasses,!allowedChildClassesEffective"
  [..]
Comment 1 Howard Chu 2014-05-03 15:34:26 UTC
michael@stroeder.com wrote:
> Full_Name:
> Version:
> OS:
> URL:
> Submission from: (NULL) (79.227.159.237)
>
>
> In some cases it would be handy to explicitly exclude attributes from getting
> replicated with parameter 'attrs' in the syncrepl statements.
>
> Example for working around slapo-accesslog's operational attributes getting
> replicated:

Use "exattrs" to exclude specific attrs. This has been supported since 2004, 
ITS#3289

> syncrepl
>    [..]
>    attrs="*,+,!allowedAttributes,!allowedAttributesEffective,!allowedChildClasses,!allowedChildClassesEffective"
>    [..]
>
>


-- 
   -- 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 Michael Ströder 2014-05-03 16:20:04 UTC
hyc@symas.com wrote:
> Use "exattrs" to exclude specific attrs. This has been supported since 2004, 
> ITS#3289

Sorry, missed that. It seems not to be documented in RE24 yet.

Ciao, Michael.

Comment 3 Howard Chu 2014-05-04 16:56:59 UTC
Michael Ströder wrote:
> hyc@symas.com wrote:
>> Use "exattrs" to exclude specific attrs. This has been supported since 2004,
>> ITS#3289
>
> Sorry, missed that. It seems not to be documented in RE24 yet.
>
> Ciao, Michael.
>
Feel free to submit a doc patch, thanks.

-- 
   -- 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 4 Quanah Gibson-Mount 2014-05-05 09:55:07 UTC
changed notes
changed state Open to Test
moved from Incoming to Documentation
Comment 5 Quanah Gibson-Mount 2014-05-05 12:50:38 UTC
changed notes
changed state Test to Release
Comment 6 Quanah Gibson-Mount 2014-05-05 16:49:10 UTC
--On Sunday, May 04, 2014 5:57 PM +0000 hyc@symas.com wrote:

> Michael Str?der wrote:
>> hyc@symas.com wrote:
>>> Use "exattrs" to exclude specific attrs. This has been supported since
>>> 2004, ITS#3289
>>
>> Sorry, missed that. It seems not to be documented in RE24 yet.
>>
>> Ciao, Michael.
>>
> Feel free to submit a doc patch, thanks.

I see it documented:

quanah@zre-ldap001:~/src/openldap/openldap-2-4/doc/man/man5$ grep exattrs  *
slapd-config.5:.B [exattrs=<attr list>]
slapd-config.5:.B exattrs
slapd-config.5:attributes, and \fBattrsonly\fP and \fBexattrs\fP are unset 
by default.
slapo-dds.5:    exattrs=entryTtl,entryExpireTimestamp
quanah@zre-ldap001:~/src/openldap/openldap-2-4/doc/man/man5$


--Quanah


--

Quanah Gibson-Mount
Architect - Server
Zimbra, Inc.
--------------------
Zimbra ::  the leader in open source messaging and collaboration

Comment 7 Quanah Gibson-Mount 2014-05-05 19:53:34 UTC
--On Monday, May 05, 2014 5:49 PM +0000 quanah@zimbra.com wrote:

> --On Sunday, May 04, 2014 5:57 PM +0000 hyc@symas.com wrote:
>
>> Michael Str?der wrote:
>>> hyc@symas.com wrote:
>>>> Use "exattrs" to exclude specific attrs. This has been supported since
>>>> 2004, ITS#3289
>>>
>>> Sorry, missed that. It seems not to be documented in RE24 yet.
>>>
>>> Ciao, Michael.
>>>
>> Feel free to submit a doc patch, thanks.
>
> I see it documented:
>
> quanah@zre-ldap001:~/src/openldap/openldap-2-4/doc/man/man5$ grep exattrs
> * slapd-config.5:.B [exattrs=<attr list>]
> slapd-config.5:.B exattrs
> slapd-config.5:attributes, and \fBattrsonly\fP and \fBexattrs\fP are
> unset  by default.
> slapo-dds.5:    exattrs=entryTtl,entryExpireTimestamp
> quanah@zre-ldap001:~/src/openldap/openldap-2-4/doc/man/man5$

It was missing from slapd.conf(5) however.  This is now fixed.

--Quanah

--

Quanah Gibson-Mount
Architect - Server
Zimbra, Inc.
--------------------
Zimbra ::  the leader in open source messaging and collaboration

Comment 8 OpenLDAP project 2014-10-23 07:28:50 UTC
Updated slapd.conf(5) in master
Already documented in slapd-config(5)
Updated slapd.conf(5) in RE25
Updated slapd.conf(5) in RE24
Comment 9 Quanah Gibson-Mount 2014-10-23 07:28:50 UTC
changed notes
Comment 10 Quanah Gibson-Mount 2014-10-23 07:28:51 UTC
changed state Release to Closed