2.2. Examples

  • If your default realm was APACHE.ORG, but you also wanted to take all principals from ACME.COM that had a single component [email protected], the following rule would do this:

    RULE:[1:$1@$0]([email protected])s/@.//
    DEFAULT
  • To translate names with a second component, you could use these rules:

    RULE:[1:$1@$0]([email protected])s/@.//
    RULE:[2:$1@$0]([email protected])s/@.// DEFAULT
  • To treat all principals from APACHE.ORG with the extension /admin as admin, your rules would look like this:

    RULE[2:$1%$2@$0](.%[email protected])s/./admin/
    DEFAULT

loading table of contents...