]> git.sur5r.net Git - openldap/commitdiff
"searchFilter" by default must be empty
authorPierangelo Masarati <ando@openldap.org>
Wed, 10 Mar 2004 21:44:22 +0000 (21:44 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 10 Mar 2004 21:44:22 +0000 (21:44 +0000)
servers/slapd/overlays/rwm.c

index 2901f6b1337199e327ceb0d20b59c73e9edbcbed..4e11a800f49afddd124b3d02c13fbe9f6b6084c3 100644 (file)
@@ -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, "<suffix massage>", 1, 2, rargv );
+       }
+       
 #endif /* ENABLE_REWRITE */
 
        rwm_map_init( &rwmap->rwm_oc, &mapping );