8. Rewriting user names

You can change the User-Name attribute in each request by using RewriteUsername configuration parameters globally and in different clauses. This allows you to apply separate rewriting rules to the User-Name. In case there are several clauses with RewriteUsername parameters, rewriting rules for a request are executed in the following order:
The parameter is a Perl substitution regular expression that is applied to the User-Name attribute in the request. If you do not know how to write Perl substitution regexps, you should consult a Perl programmer. At Trace level 4, you can see the result of each separate rewrite for debugging purposes.
You can have any number of RewriteUsername parameters. The rewrites are applied to the username in the same order that they appear in the configuration file.
Here are some example of using this feature in a variety of circumstances: