]> git.sur5r.net Git - openldap/commitdiff
Don't call search rewriter plugins for internal operations
authorLuke Howard <lukeh@openldap.org>
Sun, 11 Jun 2006 10:10:32 +0000 (10:10 +0000)
committerLuke Howard <lukeh@openldap.org>
Sun, 11 Jun 2006 10:10:32 +0000 (10:10 +0000)
servers/slapd/slapi/slapi_overlay.c

index 25c5b0011410b4e0884b25c5f2a4e9c5b38dba97..cdd6e0f7c1c56378e69dddf9962e88311a48c19f 100644 (file)
@@ -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.