From e752b0b9afd00de59b332ea537769329eeaae3ef Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Sun, 11 Jun 2006 10:10:32 +0000 Subject: [PATCH] Don't call search rewriter plugins for internal operations --- servers/slapd/slapi/slapi_overlay.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. -- 2.39.5