]> git.sur5r.net Git - openldap/commitdiff
Check for modified filter after calling search rewriter plugin
authorLuke Howard <lukeh@openldap.org>
Wed, 22 Jan 2003 14:57:35 +0000 (14:57 +0000)
committerLuke Howard <lukeh@openldap.org>
Wed, 22 Jan 2003 14:57:35 +0000 (14:57 +0000)
servers/slapd/search.c

index 404c3767a075aacbcd53c03cf1254428819d7789..06d616796557e3c6468e80a4dba0d0d256045337 100644 (file)
@@ -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) */