gx-gen-mapfile - Generate a grid-mapfile
gx-gen-mapfile -help
gx-gen-mapfile [options] [grid-mapfile]
gx-gen-mapfile, part of the gx-map system, is the third of the three phases used to generate the Globus grid-mapfile.
gx-gen-mapfile is normally run from a cron job. It reads the requests.log file and generates a new grid-mapfile from scratch as needed. If no file names are specified, a grid-mapfile is written to stdout.
Option processing is done using the Perl Getopt::Long module.
Options may be specified with a single or double leading '-' character. Option names may be abbreviated to whatever is unique. Arguments may be separated either by a blank or by an '=' character. For example, ``-foobar 42'', ``--foobar=42'', and ``-foob 42'' would all be equivalent.
If not specified, use the default file, gx-map-data/requests.log, which may also be specified explicitly as -req default (the name ``default'' may not be abbreviated). It should not normally be necessary to use this option.
GT2 used an older version of OpenSSL, which used different text representations of certain fields in DNs. The affected fields are:
GT2: /USERID=... --> GT4: /UID=...
GT2: /Email=... --> GT4: /emailAddress=...
The -gt2-compatible option causes duplicate entries to be generated for DNs containing these fields.
The -gt3-compatible option causes duplicate entries to be generated for DNs containing this field.
Since GT3 has been superseded by GT4, this option is rarely useful.
-merge-before file1 -merge-before file2 -merge-after file3
Mappings from files specified with the -merge-before option at treated as if they were submitted in the past, so they'll be overridden by conflicting mappings from any request log files.
Mappings from files specified with the -merge-after option at treated as if they were submitted in the future (one hour after the current time, to avoid clock skew problems), so they'll override conflicting mappings from any request log files.
Since the gx-map system is designed to have complete control over the grid-mapfile, the -merge-before and -merge-after options allow other mechanisms to be used along with gx-map. For example, if a site automatically issues certificates for all users, an external process might maintain a grid-mapfile containing all those entries. Using this option allows this information to be integrated into the grid-mapfile, while also allowing users to add mappings for other certificates using gx-request. (Another option is to create a separate tool that invokes gx-request automatically; for example, this is done at SDSC for certificates issued by the NPACI and SDSC CAs, using the gx-check-index command).
gx-request update
will force an update to this file.)
gx-map(7), gx-request(1), gx-check-requests(8), gx-map-security(7), gx-check-index(8)
Keith Thompson, San Diego Supercomputer Center, <kst@sdsc.edu>
See the file LICENSE in the gx-map distribution, installed in the etc/gx-map subdirectory.