Mapping VOMS users based on their role
This page is based on an NorduGrid bugzilla entry 1127 which discuss how to use the grid-manager authentication framework to map VOMS users to different local accounts based on the VOMS role.
John is member of the VO smscg where he belongs to the group atlas and has been assigned the roles production and test. Since groups and roles are fully decoupled, John can request proxies that can include one (or several) of the following different group-role combinations (termed "Fully Qualified Names" (FQAN)):
- /smscg (notice it's the same as /smscg/Role=NULL)
- /smscg/Role=production
- /smscg/Role=test
- /smscg/atlas
- /smscg/atlas/Role=production
- /smscg/atlas/Role=test
Assume we have to following local users smcsg and smscgP. We now want an assignment that performs the following VOMS to local user mapping:
- /smscg -> smscg
- /smscg/Role=production -> smscg
- /smscg/Role=test -> smscg
- /smscg/atlas -> smscgP
- /smscg/atlas/Role=production -> smscgP
- /smscg/atlas/Role=test -> smscgP
LRMS can then be configured to have different priorities for the two users, but this is outside the scope of this page.
We start by defining a [vo] block. This needs to be done in order to
- To generate grid-mapfile needed for information system. For that purpose nordugridmap utility will have to be run periodically.
- To provide coarse-grained information to authorization rules used to define authorization groups. If needed of course.
Next comes an authorization group. In the authorization group we are going to check if user presents
any proof that he belongs to smscg VO. We can use that information later to explicitely limit access to resources. If such access control is not needed this group can be removed.
Finally we do the fine grained configuration in the gridftpd group