NOTE: My question is in regards to this HW doc: http://hortonworks.com/blog/fine-tune-your-apache-hadoop-security-settings/
I'm very familiar with regex's so I understand the `s/@.*//` portions regarding rules like this:
And I've re-read this paragraph multiple times.
The translations rules have 3 sections: base, filter, and substitution.
The base is the number of components in the principal name excluding the realm and the pattern for building the name from the sections of the principal name. The base uses $0 to mean the realm, $1 to mean the first component and $2 to mean the second component.
But it's unclear to me what the "[1:" means in the rule above. Additionally what does the "[2:" mean in this rule?
[2:$1%$2] translates “username/admin@APACHE.ORG” to “username%admin”
I'm guessing it's a rule # that tells what order to apply the rules, but that's a total guess.