Skip to content

subsuffix are not returned in one level scoped search #5772

Closed
@progier389

Description

@progier389

Issue Description
When

Package Version and Platform:

  • Platform: [e.g. Fedora]
  • Package and version: main branch

Steps to Reproduce
Steps to reproduce the behavior:

  1. Create an instance with dc=example,dc=com suffix (with entries in the backends)
  2. Create a subsuffix just below the suffix with entries:
    dsconf i1 backend create --suffix ou=foo,dc=example,dc=com --create-entries --be-name foo
  3. Run ldapsearch ldapsearch with sub scope:
    ldapsearch -Q -LLL -Y EXTERNAL -H ldapi://%2fvar%2frun%2fslapd-i1.socket -s sub -b dc=example,dc=com '(ou=*)' dn
    (No errors: ou=foo,dc=example,dc=com is listed)
  4. Run ldapsearch with one scope:
    ldapsearch -Q -LLL -Y EXTERNAL -H ldapi://%2fvar%2frun%2fslapd-i1.socket -s one -b dc=example,dc=com '(ou=*)' dn
    (Error: ou=foo,dc=example,dc=com is not listed)

Expected results
ou=foo,dc=example,dc=com should be listed in both cases

Additional context
This behavior confuses some ldap browsers that cannot show any more the entries below sub suffix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions