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

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

>> The correct matchingRule is "dnSubtreeMatch"; with it, the filter you're

> To me, part of the problem here is that this filter says: "Dump everything
> in the database that doesn't match".

That filter says "dump nothing", since it's using an undefined
matchingRule; you should have used "dnSubtreeMatch".

  Which, since it apparently was not a
> valid filter, should have been everything, not nothing (0 size db).  That
> would indicate to me that there are problems with the filter evaulation in
> and of itself.
> It sounds from what you are saying that "-a" can also only be used on a
> running slapd, which in and of itself can be problematic.

I'm saying that for filters that use volatile attributes.  If you do
"slapcat -a "(objectClass=inetOrgPerson)" it works as expected.  The
suggested fix is not too hard to implement, provided we can ensure all
stuff like plugins/overlays get intialized and work in tool mode as they
do in server mode; I'm not 100% positive about this.  If worth the effort,
the fix is a few lines of code.


Pierangelo Masarati

    SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497