LCMAPS_VOMS_POOLGROUP.MOD(8) | Site Access Control | LCMAPS_VOMS_POOLGROUP.MOD(8) |
lcmaps_voms_poolgroup.mod - LCMAPS plugin to switch user identity based on VOMS credentials by pool groups
lcmaps_voms_poolgroup.mod [-groupmapfile group-mapfile] [-groupmapdir groupmapdir] [--map-to-secondary-groups] [-override_inconsistency] [-mapall] [-mapmin number of minimal mappings] [-strict_poolprefix_match {yes|no}]
The VOMS poolgroup acquisition plugin is a 'VOMS-aware' plugin similar to the lcmaps_voms_poolaccount.mod.8 plugin, but for groups instead of accounts. The plugin tries to find local groups (more specifically GroupIDs) based on the VOMS information that is available from LCMAPS, in particular the Fully Qualified Attribute Names (FQANs). The actual groups are acquired from a group pool. The resulting list of groups will be looked up in the /etc/groups and/or LDAP directories to determine which Group IDs should be added as a mapping result.
It will first try to find an FQAN to pool name (starting with a dot '.' instead of an alphanumeric character) mapping in the group-mapfile which will provide it with a list of local groups. The group-mapfile is similar to a grid-mapfile.
The groupmapdir directory is going to be used as a persistent and open mapping database. A pool is defined as being a set of groups following a particular pattern in their naming, e.g. pool001 or atlas001. In the directory the plug-in will make a new filename consisting of the lowercase URL-encoded VOMS FQAN.
For example, if the FQAN is mapped to .atlas in the group-mapfile, it will be mapped to the pool groups atlas001, atlas002, etc., the names of which can be found in the groupmapdir.
If there is no pool group assigned to the FQAN yet, the plugin will try to find a free pool group (i.e. one for which the link count is 1) and make a new hardlink to it with the URL-encoded FQAN as name.
When a user returns to this site the plugin will look for the FQAN of the user (URL encoded) in this directory. If found, the corresponding pool group will be reassigned.
Example showing the output of ls -li:
1836080 -rw-r--r-- 2 root root %2fdteam%2f 1836080 -rw-r--r-- 2 root root dteam001The filename is hardlinked to the mapped group name. Creating this hardlink is designed to be an atomic operation and verified to work on large installations serving multiple services from one NFS-share.
Please report any errors to the Nikhef Grid Middleware Security Team <grid-mw-security-support@nikhef.nl>.
lcmaps.db(5), lcmaps(3).
LCMAPS and the LCMAPS plug-ins were written by the Grid Middleware Security Team <grid-mw-security@nikhef.nl>.
February 6, 2015 | Stichting FOM/Nikhef |