Skip to content

[1.0.0] Add a maxSearchLookthrough option as a toggle on the server (Part 1)#173

Merged
ChadSikorra merged 1 commit into
FreeDSx:mainfrom
ChadSikorra:upgrade/limits
Jun 7, 2026
Merged

[1.0.0] Add a maxSearchLookthrough option as a toggle on the server (Part 1)#173
ChadSikorra merged 1 commit into
FreeDSx:mainfrom
ChadSikorra:upgrade/limits

Conversation

@ChadSikorra

Copy link
Copy Markdown
Contributor

This adds a toggle to prevent large scans when the backend storage cannot properly limit certain searches. The server would otherwise return a huge set of entries that PHP would then have to scan through and filter itself. This allows placing a cap on that. By default it is set to 5k. This seems like a reasonable value for this sort of backend. OpenLDAP is actually unlimited while 389DS sets the default to 5k.

This is part 1. A second part will allow this limit to be applied via a matching rule (so it can be applied individually) and also add a separate limit for paged searches (as this also applies across all pages of a paged search).

@ChadSikorra ChadSikorra merged commit cc8e5ce into FreeDSx:main Jun 7, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant