mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 01:59:38 -05:00
clarify usage for internal searches
This commit is contained in:
parent
458d1e3b50
commit
120470e1d6
1 changed files with 9 additions and 2 deletions
|
|
@ -996,8 +996,15 @@ limits_check( Operation *op, SlapReply *rs )
|
|||
/* FIXME: should this be always true? */
|
||||
assert( op->o_tag == LDAP_REQ_SEARCH);
|
||||
|
||||
/* protocol only allows 0..maxInt; internal searches
|
||||
* may use SLAP_NO_LIMIT ( = -1 ) to indicate no limits... */
|
||||
/* protocol only allows 0..maxInt;
|
||||
*
|
||||
* internal searches:
|
||||
* - may use SLAP_NO_LIMIT ( = -1 ) to indicate no limits;
|
||||
* - should use slimit = N and tlimit = SLAP_NO_LIMIT to
|
||||
* indicate searches that should return exactly N matches,
|
||||
* and handle errors thru a callback (see for instance
|
||||
* slap_sasl_match() and slap_sasl2dn())
|
||||
*/
|
||||
if ( op->ors_tlimit == SLAP_NO_LIMIT && op->ors_slimit == SLAP_NO_LIMIT ) {
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue