From 2f4678f204ead775962425e1d749a98030f34c69 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 10 Mar 2004 21:44:22 +0000 Subject: [PATCH] "searchFilter" by default must be empty --- servers/slapd/overlays/rwm.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/servers/slapd/overlays/rwm.c b/servers/slapd/overlays/rwm.c index 2901f6b133..4e11a800f4 100644 --- a/servers/slapd/overlays/rwm.c +++ b/servers/slapd/overlays/rwm.c @@ -673,6 +673,18 @@ rwm_over_init( ch_free( rwmap ); return -1; } + + { + char *rargv[3]; + + /* this rewriteContext by default must be null; + * rules can be added if required */ + rargv[ 0 ] = "rewriteContext"; + rargv[ 1 ] = "searchFilter"; + rargv[ 2 ] = NULL; + rewrite_parse( rwmap->rwm_rw, "", 1, 2, rargv ); + } + #endif /* ENABLE_REWRITE */ rwm_map_init( &rwmap->rwm_oc, &mapping ); -- 2.39.5