Skip to content
This repository was archived by the owner on Mar 4, 2022. It is now read-only.
This repository was archived by the owner on Mar 4, 2022. It is now read-only.

Differentiating between invalid path and a search that returns 0 results #104

@ssteiner

Description

@ssteiner

The SearchRequestHandler returns ResultCodeEnum.NoSuchObject whenever the search yields 0 results.
But, is that correct? I'd say yes if the path is invalid (e.g. doesn't exist), but when there's 0 results because the search term was too restrictive, a success result is more appropriate.
I've only ever been a consumer of LDAP servers, but I generally only get a 'no such object' error when I specify an invalid path. When a search yields 0 results, I get a success result with 0 results instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions