From e0b42505c11c64364f6466ee7e6857be9d16f3b2 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 6 Sep 2005 07:13:14 +0000 Subject: [PATCH] Add searchFilter var in searchDN session. Would have preferred to confine this to the searchDN context. Please review. --- servers/slapd/overlays/rwm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ); -- 2.39.5