From: Howard Chu Date: Tue, 6 Sep 2005 07:13:14 +0000 (+0000) Subject: Add searchFilter var in searchDN session. Would have preferred to confine X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~478 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e0b42505c11c64364f6466ee7e6857be9d16f3b2;p=openldap Add searchFilter var in searchDN session. Would have preferred to confine this to the searchDN context. Please review. --- diff --git a/servers/slapd/overlays/rwm.c b/servers/slapd/overlays/rwm.c index de1f5a830c..430e214ec2 100644 --- a/servers/slapd/overlays/rwm.c +++ b/servers/slapd/overlays/rwm.c @@ -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 );