]> git.sur5r.net Git - openldap/commitdiff
Fix internal search limits (due to recent limit_check change)
authorHoward Chu <hyc@openldap.org>
Wed, 7 Apr 2004 15:10:26 +0000 (15:10 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 7 Apr 2004 15:10:26 +0000 (15:10 +0000)
servers/slapd/saslauthz.c

index edd348657ea769994a81462dd2c9c07d5d4413d7..6aed39bb435593e5182c8a77be80037054141eee 100644 (file)
@@ -750,6 +750,8 @@ exact_match:
        op.o_conn = opx->o_conn;
        op.o_connid = opx->o_connid;
        op.o_req_dn = op.o_req_ndn;
+       op.oq_search.rs_slimit = 1;
+       op.oq_search.rs_tlimit = -1;
 
        op.o_bd->be_search( &op, &rs );
 
@@ -941,6 +943,7 @@ void slap_sasl2dn( Operation *opx,
 #endif
        op.oq_search.rs_deref = LDAP_DEREF_NEVER;
        op.oq_search.rs_slimit = 1;
+       op.oq_search.rs_tlimit = -1;
        op.oq_search.rs_attrsonly = 1;
        op.o_req_dn = op.o_req_ndn;