From: Luke Howard Date: Sun, 11 Jun 2006 10:10:32 +0000 (+0000) Subject: Don't call search rewriter plugins for internal operations X-Git-Tag: OPENLDAP_REL_ENG_2_4_3ALPHA~9^2~142 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e752b0b9afd00de59b332ea537769329eeaae3ef;p=openldap Don't call search rewriter plugins for internal operations --- diff --git a/servers/slapd/slapi/slapi_overlay.c b/servers/slapd/slapi/slapi_overlay.c index 25c5b00114..cdd6e0f7c1 100644 --- a/servers/slapd/slapi/slapi_overlay.c +++ b/servers/slapd/slapi/slapi_overlay.c @@ -303,7 +303,8 @@ slapi_op_search_callback( Operation *op, SlapReply *rs, int prc ) rs->sr_err = LDAP_SUCCESS; - if ( slapi_int_call_plugins( op->o_bd, SLAPI_PLUGIN_COMPUTE_SEARCH_REWRITER_FN, pb ) == 0 ) { + if ( pb->pb_intop == 0 && + slapi_int_call_plugins( op->o_bd, SLAPI_PLUGIN_COMPUTE_SEARCH_REWRITER_FN, pb ) == 0 ) { /* * The plugin can set the SLAPI_SEARCH_FILTER. * SLAPI_SEARCH_STRFILER is not normative.