Skip to content
Snippets Groups Projects
Commit 246fa41c authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

"searchFilter" by default must be empty

parent 33442d7c
No related branches found
No related tags found
No related merge requests found
......@@ -132,6 +132,12 @@ ldap_back_db_init(
rargv[ 2 ] = NULL;
rewrite_parse( li->rwmap.rwm_rw, "<suffix massage>",
1, 2, rargv );
rargv[ 0 ] = "rewriteContext";
rargv[ 1 ] = "default";
rargv[ 2 ] = NULL;
rewrite_parse( li->rwmap.rwm_rw, "<suffix massage>",
1, 2, rargv );
}
#endif /* ENABLE_REWRITE */
......
......@@ -50,6 +50,27 @@ new_target( void )
return NULL;
}
{
char *rargv[3];
/*
* the filter rewrite as a string must be disabled
* by default; it can be re-enabled by adding rules;
* this creates an empty rewriteContext
*/
rargv[ 0 ] = "rewriteContext";
rargv[ 1 ] = "searchFilter";
rargv[ 2 ] = NULL;
rewrite_parse( lt->rwmap.rwm_rw, "<suffix massage>",
1, 2, rargv );
rargv[ 0 ] = "rewriteContext";
rargv[ 1 ] = "default";
rargv[ 2 ] = NULL;
rewrite_parse( lt->rwmap.rwm_rw, "<suffix massage>",
1, 2, rargv );
}
ldap_back_map_init( &lt->rwmap.rwm_at, &mapping );
return lt;
......
......@@ -683,6 +683,11 @@ rwm_over_init(
rargv[ 1 ] = "searchFilter";
rargv[ 2 ] = NULL;
rewrite_parse( rwmap->rwm_rw, "<suffix massage>", 1, 2, rargv );
rargv[ 0 ] = "rewriteContext";
rargv[ 1 ] = "default";
rargv[ 2 ] = NULL;
rewrite_parse( rwmap->rwm_rw, "<suffix massage>", 2, 2, rargv );
}
#endif /* ENABLE_REWRITE */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment