File-based Name Mapping

GridShib Beta implements a file-based name mapping at the !IdP. (A name mapping file is similar in concept to the grid-mapfile at the Grid SP.) Each row in the name mapping file includes an RFC 2253-conformant DN string and a principal name, separated by one or more whitespace characters. Quoted or unquoted forms (in either data element) are permitted. In a quoted form, the escape character is the familiar backslash character (
).

Blank lines and comments are permitted in the name mapping file. A comment is any line whose first non-whitespace character is the octothorp (#).

The implementation uses regular expressions to parse a name mapping file. The following rules are used to parse the file:

A simple example of a name mapping file is distributed along with GridShib Beta.