mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-12 15:23:11 -05:00
Clarification regarding compute search filter rewriting: only
SLAPI_SEARCH_FILTER needs to be updated
This commit is contained in:
parent
3dad7cae7b
commit
12af6de4cf
1 changed files with 14 additions and 1 deletions
|
|
@ -372,8 +372,21 @@ do_search(
|
|||
}
|
||||
|
||||
if ( doPluginFNs( be, SLAPI_PLUGIN_COMPUTE_SEARCH_REWRITER_FN, pb ) == 0 ) {
|
||||
/*
|
||||
* The plugin can set the SLAPI_SEARCH_FILTER.
|
||||
* SLAPI_SEARCH_STRFILER is not normative.
|
||||
*/
|
||||
slapi_pblock_get( pb, SLAPI_SEARCH_FILTER, (void *)&filter);
|
||||
slapi_pblock_get( pb, SLAPI_SEARCH_STRFILTER, (void *)&fstr.bv_val );
|
||||
ch_free( fstr.bv_val );
|
||||
filter2bv( filter, &fstr );
|
||||
#ifdef NEW_LOGGING
|
||||
LDAP_LOG( OPERATION, ARGS,
|
||||
"do_search: after compute_rewrite_search filter: %s\n",
|
||||
fstr.bv_len ? fstr.bv_val : "empty", 0 );
|
||||
#else
|
||||
Debug( LDAP_DEBUG_ARGS, " after compute_rewrite_search filter: %s\n",
|
||||
fstr.bv_len ? fstr.bv_val : "empty", 0, 0 );
|
||||
#endif
|
||||
}
|
||||
#endif /* defined( LDAP_SLAPI ) */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue