]> git.sur5r.net Git - openldap/commitdiff
Call rewrite function after preop plugins (not before) - confirmed with Sun
authorLuke Howard <lukeh@openldap.org>
Wed, 22 Jan 2003 14:54:12 +0000 (14:54 +0000)
committerLuke Howard <lukeh@openldap.org>
Wed, 22 Jan 2003 14:54:12 +0000 (14:54 +0000)
servers/slapd/search.c

index fdd53ded16e98761ce37dfdd3615ad59a3230970..404c3767a075aacbcd53c03cf1254428819d7789 100644 (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) */