mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-19 21:32:58 -05:00
clarify what rewrite rules suffixmassage corresponds to
This commit is contained in:
parent
859e282780
commit
85b078a3cb
1 changed files with 15 additions and 1 deletions
|
|
@ -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 "(.*)<virtualnamingcontext>$" "%1<realnamingcontext>" ":"
|
||||
# empty filter rule
|
||||
rewriteContext searchFilter
|
||||
# all dataflow from server to client
|
||||
rewriteContext searchResult
|
||||
rewriteRule "(.*)<realnamingcontext>$" "%1<virtualnamingcontext>" ":"
|
||||
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'
|
||||
|
|
|
|||
Loading…
Reference in a new issue