The grid-mapfile-delete-entry program deletes mappings from a gridmap file. If both the -dn and -ln
options are specified, grid-mapfile-delete-entry removes entries which meet both criteria (remove entries
mapping DISTINGUISHED-NAME to LOCAL-NAME for each LOCAL-NAME specified). If only -dn or -ln is specified
all entries for the specified DISTINGUISHED-NAME or LOCAL-NAME are removed.
By default, grid-mapfile-delete-entry will modify the gridmap file named by the GRIDMAP environment
variable if present, or the file /etc/grid-security/grid-mapfile if not. This can be changed by the use
of the -mapfile or '-f command-line options.
Prior to modifying a gridmap file, grid-mapfile-delete-entry saves its current contents to a file with
the string .old appended to the original file name.
The full set of command-line options to grid-mapfile-delete-entry are:
-help,-usage
Display the command-line options to grid-mapfile-delete-entry.
-version,-versions
Display the version number of the grid-mapfile-delete-entry command. The second form includes more
details.
-dnDISTINGUISHED-NAME
The X.509 distinguished name to remove from the gridmap file. If the -ln option is not specified,
remove all entries for this name; otherwise, remove entries that match both this name and the local
name. The name should be in OpenSSL’s oneline format.
-lnLOCAL-NAME...
The POSIX user name to remove from the gridmap file. Include multiple LOCAL-NAME strings after the
-ln command-line option to remove multiple names from the gridmap. If the -dn option is not
specifeid, remove all entries for these names; otherwise, remove entries that match the
DISTINGUISHED-NAME and any of the LOCAL-NAME values.
-d,-dryrun
Display diagnostics about what would be removed from the gridmap file, but don’t actually modify the
file.
-mapfileMAPFILE,-fMAPFILE
Modify the gridmap file named by MAPFILE instead of the default.