[Date Prev][Date Next] [Chronological] [Thread] [Top]

ITS #989 rewrite capabilities in back-ldap (ITS#998)



I made a horrible mistake in the suggested replacement for the
suffix massage stuff. It should be read as:

# client to server operations have the virtual naming context rewritten
rewriteContext default
rewriteRule "(.*)<virtual naming context>" "%1<real naming context>"

# server results have the virtual naming context rewritten back
rewriteContext searchResult
rewriteRule "(.*)<real naming context>" "%1<virtual naming context>"

# no filter rewriting (otherwise default would be used)
rewriteContext searchFilter

Example:

rewriteContext default
rewriteRule "(.*)o=OpenLDAP, c=US" "%1dc=openldap, dc=org"

rewriteContext searchResult
rewriteRule "(.*)dc=openldap, dc=org" "%1o=OpenLDAP, c=US"

rewriteContext searchFilter

Thanks, Pierangelo.

--
Dr. Pierangelo Masarati, mailto:ando@sys-net.it
Developer, SysNet s.n.c. http://www.sys-net.it