From: Pierangelo Masarati Date: Wed, 7 Apr 2004 20:55:32 +0000 (+0000) Subject: clarify what rewrite rules suffixmassage corresponds to X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~97 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=85b078a3cbc18a7d0b7c7611e551e53691248c0e;p=openldap clarify what rewrite rules suffixmassage corresponds to --- diff --git a/doc/man/man5/slapd-meta.5 b/doc/man/man5/slapd-meta.5 index a7e3228df6..a8d50a6375 100644 --- a/doc/man/man5/slapd-meta.5 +++ b/doc/man/man5/slapd-meta.5 @@ -170,7 +170,8 @@ It has been obsoleted by the rewriting tools. However, both for backward compatibility and for ease of configuration when simple suffix massage is required, it has been preserved. It wraps the basic rewriting instructions that perform suffix -massaging. +massaging. See the "REWRITING" section for a detailed list +of the rewrite rules it implies. .LP Note: this also fixes a flaw in suffix massaging, which operated on (case insensitive) DNs instead of normalized DNs, @@ -588,6 +589,19 @@ with the `M{n}' flag. # set to `off' to disable rewriting rewriteEngine on +# the rules the "suffixmassage" directive implies +rewriteEngine on +# all dataflow from client to server referring to DNs +rewriteContext default +rewriteRule "(.*)$" "%1" ":" +# empty filter rule +rewriteContext searchFilter +# all dataflow from server to client +rewriteContext searchResult +rewriteRule "(.*)$" "%1" ":" +rewriteContext searchAttrDN alias searchResult +rewriteContext matchedDN alias searchResult + # Everything defined here goes into the `default' context. # This rule changes the naming context of anything sent # to `dc=home,dc=net' to `dc=OpenLDAP, dc=org'