From: Luke Howard Date: Wed, 22 Jan 2003 14:57:35 +0000 (+0000) Subject: Check for modified filter after calling search rewriter plugin X-Git-Tag: NO_SLAP_OP_BLOCKS~539 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=561ab80de066f12bf24d37837c66df4f5c8318af;p=openldap Check for modified filter after calling search rewriter plugin --- diff --git a/servers/slapd/search.c b/servers/slapd/search.c index 404c3767a0..06d6167965 100644 --- a/servers/slapd/search.c +++ b/servers/slapd/search.c @@ -371,7 +371,10 @@ do_search( return rc; } - doPluginFNs( be, SLAPI_PLUGIN_COMPUTE_SEARCH_REWRITER_FN, pb ); + if ( doPluginFNs( be, SLAPI_PLUGIN_COMPUTE_SEARCH_REWRITER_FN, pb ) == 0 ) { + slapi_pblock_get( pb, SLAPI_SEARCH_FILTER, (void *)&filter); + slapi_pblock_get( pb, SLAPI_SEARCH_STRFILTER, (void *)&fstr.bv_val ); + } #endif /* defined( LDAP_SLAPI ) */ /* actually do the search and send the result(s) */