From: Luke Howard Date: Wed, 22 Jan 2003 14:54:12 +0000 (+0000) Subject: Call rewrite function after preop plugins (not before) - confirmed with Sun X-Git-Tag: NO_SLAP_OP_BLOCKS~540 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2aeec166ffb5f6fd4f6a240568eb807e0c849b21;p=openldap Call rewrite function after preop plugins (not before) - confirmed with Sun --- diff --git a/servers/slapd/search.c b/servers/slapd/search.c index fdd53ded16..404c3767a0 100644 --- a/servers/slapd/search.c +++ b/servers/slapd/search.c @@ -353,14 +353,6 @@ do_search( slapi_pblock_set( pb, SLAPI_SEARCH_ATTRSONLY, (void *)attrsonly ); slapi_pblock_set( pb, SLAPI_MANAGEDSAIT, (void *)(1) ); - /* - * XXX FIXME: do we call this here? Awaiting clarification - * from Sun. - * - * Rewrite filter for any computed attributes. - */ - doPluginFNs( be, SLAPI_PLUGIN_COMPUTE_SEARCH_REWRITER_FN, pb ); - rc = doPluginFNs( be, SLAPI_PLUGIN_PRE_SEARCH_FN, pb ); if ( rc != 0 ) { /* @@ -378,6 +370,8 @@ do_search( rc = LDAP_OTHER; return rc; } + + doPluginFNs( be, SLAPI_PLUGIN_COMPUTE_SEARCH_REWRITER_FN, pb ); #endif /* defined( LDAP_SLAPI ) */ /* actually do the search and send the result(s) */