Issue 3112 - slapcat option to dump DB without a subtree
Summary: slapcat option to dump DB without a subtree
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-25 19:50 UTC by Quanah Gibson-Mount
Modified: 2014-08-01 21:06 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 Quanah Gibson-Mount 2004-04-25 19:50:28 UTC
Full_Name: Quanah Gibson-Mount
Version: openldap-2.2.11
OS: Solaris 8
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (171.66.182.82)


In playing with slapcat, and using OpenLDAP as our production servers for the
last year, I've found that it would be extremely useful to be able to slapcat
the database while excluding a subtree.  The reason for this is that we
periodically regenerate one portion of our tree structure.  Although we can
specifically slapcat particular subtrees, I find it would be simpler to run
slapcat to exclude the tree I don't want anymore from the output.

So this is a simple enhancement request. ;)

Comment 1 Kurt Zeilenga 2004-04-25 22:35:07 UTC
moved from Incoming to Software Enhancements
Comment 2 Kurt Zeilenga 2004-05-21 02:44:48 UTC
changed notes
Comment 3 Kurt Zeilenga 2004-09-08 17:07:37 UTC
changed notes
changed state Open to Test
Comment 4 Kurt Zeilenga 2004-09-08 17:10:03 UTC
I've added:
  entryDN operational attribute
  dnSubtree extensible matching rule
  slapcat -a filter

which, in total, should be address this feature request.

That is,
  slapcat -a (!(entryDN:dnSubtree:=ou=People,dc=example,dc=com))

should exclude entries in this subtree from the output.
Comment 5 Quanah Gibson-Mount 2004-09-09 00:13:18 UTC

--On Thursday, September 09, 2004 12:10 AM +0000 Kurt Zeilenga 
<openldap-its@OpenLDAP.org> wrote:

> I've added:
>   entryDN operational attribute
>   dnSubtree extensible matching rule
>   slapcat -a filter
>
> which, in total, should be address this feature request.
>
> That is,
>   slapcat -a (!(entryDN:dnSubtree:=ou=People,dc=example,dc=com))
>
> should exclude entries in this subtree from the output.

That's nifty! :)

Thanks

--Quanah

--
Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html

Comment 6 Kurt Zeilenga 2004-09-09 10:48:48 UTC
changed notes
changed state Test to Closed
Comment 7 Howard Chu 2009-02-17 04:50:44 UTC
moved from Software Enhancements to Archive.Software Enhancements
Comment 8 OpenLDAP project 2014-08-01 21:06:58 UTC
rather see this genericized... return all entries matching a filter.
Then maybe add some new matching rules to handle DN relations.