From: Pierangelo Masarati Date: Mon, 21 Jun 2004 09:10:46 +0000 (+0000) Subject: clarify usage for internal searches X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~207 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=120470e1d6e9a17d24c0a03c3a2975594d7530d2;p=openldap clarify usage for internal searches --- diff --git a/servers/slapd/limits.c b/servers/slapd/limits.c index 3ea4877284..0c62a25baa 100644 --- a/servers/slapd/limits.c +++ b/servers/slapd/limits.c @@ -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; }