Issue 7975 - MDB search scope one and filter returns search base
Summary: MDB search scope one and filter returns search base
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: 2.4.40
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-29 15:01 UTC by requate@univention.de
Modified: 2015-07-02 17:45 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 requate@univention.de 2014-10-29 15:01:57 UTC
Full_Name: Arvid Requate
Version: 2.4.40
OS: Debian / UCS
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (82.198.197.8)


With an mdb backend the command

ldapsearch -xLLL -b dc=ar40i1,dc=qa -s one objectClass=domain dn

returns the base DN. With a bdb backend it doesn't.

The crucial point seems to be the filter in this case, which matches the base
object only, and none of it's children. If I change the filter to
objectclass=top (or leave it away) then only the children are returned, just
like the behaviour of the bdb backend.
Comment 1 Howard Chu 2014-10-29 18:05:55 UTC
requate@univention.de wrote:
> Full_Name: Arvid Requate
> Version: 2.4.40
> OS: Debian / UCS
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (82.198.197.8)
>
>
> With an mdb backend the command
>
> ldapsearch -xLLL -b dc=ar40i1,dc=qa -s one objectClass=domain dn
>
> returns the base DN. With a bdb backend it doesn't.
>
> The crucial point seems to be the filter in this case, which matches the base
> object only, and none of it's children. If I change the filter to
> objectclass=top (or leave it away) then only the children are returned, just
> like the behaviour of the bdb backend.

Fixed now in git master.

-- 
   -- 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 Howard Chu 2014-10-29 18:07:17 UTC
changed notes
changed state Open to Test
moved from Incoming to Software Bugs
Comment 3 Quanah Gibson-Mount 2014-12-10 23:29:33 UTC
changed notes
changed state Test to Release
Comment 4 OpenLDAP project 2015-07-02 17:45:41 UTC
fixed in master
fixed in RE25
fixed in RE24
Comment 5 Quanah Gibson-Mount 2015-07-02 17:45:41 UTC
changed notes
changed state Release to Closed