]> git.sur5r.net Git - openldap/commitdiff
Add searchFilter var in searchDN session. Would have preferred to confine
authorHoward Chu <hyc@openldap.org>
Tue, 6 Sep 2005 07:13:14 +0000 (07:13 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 6 Sep 2005 07:13:14 +0000 (07:13 +0000)
this to the searchDN context. Please review.

servers/slapd/overlays/rwm.c

index de1f5a830c40a81d53407b99441ab30a7d5c5567..430e214ec2eb65c90972decce27261144fc2a1fa 100644 (file)
@@ -669,7 +669,10 @@ rwm_op_search( Operation *op, SlapReply *rs )
        char                    *text = NULL;
 
 #ifdef ENABLE_REWRITE
-       rc = rwm_op_dn_massage( op, rs, "searchDN" );
+       rc = rewrite_session_var_set( rwmap->rwm_rw, op->o_conn,
+               "searchFilter", op->ors_filterstr.bv_val );
+       if ( rc == LDAP_SUCCESS )
+               rc = rwm_op_dn_massage( op, rs, "searchDN" );
 #else /* ! ENABLE_REWRITE */
        rc = 1;
        rc = rwm_op_dn_massage( op, rs, &rc );