[Date Prev][Date Next]
> The limit code in the frontend needs also to be run before calling
> backend operations internally.
> How about having a utilify function to set the operation limits ?
> instead of duplicating codes ?
in limits.c you'll find limits_check(),
which sets the search operation's fields
related to size and time limits in the
usual sense, plus the ors_limit field
with more detailed info on the limts
that apply to that search.
Remember: if op->ors_limit is NULL, then
the search is issued by that backend's
rootdn, otherwise a regular search with
appropriate limits is being considered.
The helper returns 0 in case of success,
or -1 in case LDAP_ADMINLIMIT_EXCEEDED
has already been returned to the caller.
- From: Pierangelo Masarati <firstname.lastname@example.org>
- Re: limits
- From: "Jong" <jongchoi@OpenLDAP.org>