go-ldap / ldap

Basic LDAP v3 functionality for the GO programming language.
Other
2.23k stars 352 forks source link

feat: Add `EnforceSizeLimit` to enforce the specified search request size limit (fixes #431) #482

Closed cpuschma closed 8 months ago

cpuschma commented 8 months ago

This PR adds a new optional attribute that, when enabled, enforces a hard limit on the maximum number of parsed entries from a search request to the requested SizeLimit. This behaviour is disabled by default.

See #431 for why this might be necessary.