From: Pierangelo Masarati Date: Wed, 10 Mar 2004 21:44:22 +0000 (+0000) Subject: "searchFilter" by default must be empty X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~313 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2f4678f204ead775962425e1d749a98030f34c69;p=openldap "searchFilter" by default must be empty --- 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 );