Call rewrite function after preop plugins (not before) - confirmed with Sun

This commit is contained in:
Luke Howard 2003-01-22 14:54:12 +00:00
parent 5b4b062dba
commit 2aeec166ff

View file

@ -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) */