Skip to content
This repository has been 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

Open
ssteiner opened this issue Feb 9, 2022 · 0 comments
Open

Comments

@ssteiner
Copy link

ssteiner commented Feb 9, 2022

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant