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

Re: (ITS#3931) slapcat -a doesn't work




--On Sunday, August 14, 2005 11:48 AM -0700 Quanah Gibson-Mount 
<quanah@stanford.edu> wrote:

>
>
> --On Saturday, August 13, 2005 8:46 PM +0200 Pierangelo Masarati
> <ando@sys-net.it> wrote:
>
>> With the patch
>> <ftp://ftp.openldap.org/incoming/p.m.2005-08-13.slapcat-operational.patc
>> h> your filter works; I'd hesitate in committing it before Howard's
>> review.
>
> Hi Pierangelo,
>
> I tried 2.3.5 + your patch this morning, and it doesn't work correctly
> for me:
>
> ldap-dev0:/tmp/db# slapcat -a
> "(!(entryDN:dnSubtreeMatch:=cn=People,dc=stanford,dc=edu))" -l test.ldif
>
> ldap-dev0:/tmp/db# more test.ldif
> dn: dc=stanford,dc=edu
> objectClass: dcObject
> objectClass: organization
> o: Stanford University
> dc: stanford
> l: Palo Alto
> structuralObjectClass: organization
> entryUUID: a504e0c4-9029-1029-9e4c-98dee611ff4f
> creatorsName: cn=Manager,dc=stanford,dc=edu
> modifiersName: cn=Manager,dc=stanford,dc=edu
> createTimestamp: 20050724005725Z
> modifyTimestamp: 20050724005725Z
> entryCSN: 20050724005725Z#000001#00#000000
> contextCSN: 20050813103957Z#000001#00#000000
>
>
> There's about 60,000 entries missing from this (i.e., it only exported my
> root).  All other branches of my database and their entries are missing.
>
> For example:
>
> dn: cn=applications,dc=stanford,dc=edu (and its children)
> dn: cn=accounts,dc=stanford,dc=edu (and its children)

There is apparently a bug in the matching logic somewhere, as:

ldapsearch -h localhost 
"entryDN:dnSubtreeMatch:=cn=People,dc=stanford,dc=edu"

returns all of the people tree, but

ldapsearch -h localhost 
"(!(entryDN:dnSubtreeMatch:=cn=People,dc=stanford,dc=edu))"

only returns the root entry.

--Quanah

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

"These censorship operations against schools and libraries are stronger
than ever in the present religio-political climate. They often focus on
fantasy and sf books, which foster that deadly enemy to bigotry and blind
faith, the imagination." -- Ursula K. Le Guin