Start of topic | Skip to actions
The Grid Manager utility (GridMgr)Formerly the GenGridMap utilityOverviewThe GridMgr (and formerly the GenGridMap) utility was designed to help Grid resource administrators maintain an up-to-date Globus 2 setup. In practice, this utility can be used to help maintain any Grid Middleware supporting a grid-mapfile style of authentication (LCG, NorduGrid, VDT). This functionality is possible by introducing the concept of a virtual organisation or VO. It is left up to the administrator of a virtual organisation to maintain a list of authorised users and certificate authority configuration files. This is done via a central LDAP database. Resource administrators wishing to participate in this VO can use this utility (GridMgr) to allow VO members to access their resource. VO subgroups can be created and specified independantly and administrators can still allow or block specific users. The GridMgr utility is a greatly modified version of NorduGridmap (NorduGrid developers), which is a modified version of the mkgridmap (v1.6) Perl script written by the EU DataGrid, authorization team sec-grid@infn.it.Features
System ArchitectureThere are two components that are required for this system:
RequirementsThe original NorduGridmap had a number Perl module and library requirements. The GridMgr utility has attempted to reduce these by reimplementing some of the complex Net:: and SSL packages using simple and common command line tools. The following must be installed for GenGridMap to work:
The VO Server (LDAP)Installing and Configuring an LDAP server is not in the scope of this document. See the OpenLDAP project. Individual users should be stored in the VO Server (LDAP server) as publicly readable objectClass=organizationalPerson entries. (These are typically also objectClass=inetOrgPerson entries to allow email attributes to be set.) The Grid subject of each organizationalPerson is determined first by any description attribute matching subject=... (with no quotes), second by any stored userCertificate attribute (binary, PEM or DER), or thirdly by the actual distinguished name (DN) of the entry itself. To disable an organizationalPerson entry just set a description attribute of "subject=", blanking the subject. The following is an example individual user entry:dn: cn=Lyle Winton,ou=Belle Members,ou=People,o=BelleTestbed,o=Grid cn: Lyle Winton objectClass: top objectClass: person objectClass: organizationalPerson objectClass: inetOrgPerson ou: Belle Members givenName: Lyle sn: Winton street: School of Physics\, University of Melbourne l: Melbourne AUSTRALIA st: VIC postalCode: 3010 telephoneNumber: 61 3 8344 5455 description: subject=/O=Grid/O=Belle/OU=People/CN=Lyle WintonGroups of individuals can be specified using objectClass=groupOfNames entries with multiple member attributes. Each member attribute must be the distinguished name (DN) of an existing organizationalPerson entry. CA configuration files should be stored in the VO Server as objectClass=document entries. The documentIdentifier attribute of these entries is used to store the name of the file as installed under Globus. The documentLocation attribute is used as the location from where the file will be downloaded. HTTP and HTTPS are supported for file download locations. If any description attribute is set to "delete" the file will be scheduled for deletion. The files may be archives including TAR, TGZ, and ZIP. Configuration files are extracted from these archives to be processed before storing in the cert-path directory. Directories within archives are ignored. The following is an example CA configuration file entry: dn: cn=5e24fe33.0,ou=Melbourne EPP CA,ou=CAFiles,ou=Documents,o=BelleTestbed,o=Grid documentLocation: https://epp-ca.ph.unimelb.edu.au/Belle/5e24fe33.0 documentIdentifier: 5e24fe33.0 objectClass: top objectClass: document documentVersion: 1.0 documentPublisher: Melbourne EPP CA cn: 5e24fe33.0 DownloadRight click and save the GridMgr utility and configuration file from here:
Installation (on the Grid Resource)
0,30 * * * * root /etc/grid-security/gridmgr update-users
5,35 * * * * root /etc/grid-security/gridmgr update-crls
0 0 * * * root /etc/grid-security/gridmgr update-certs
0 0 * * * root /etc/grid-security/gridmgr check-certs
Configuration (on the Grid Resource)You can type 'gridmgr -h | less' for help. If you wish to test a new configuration file before installing it you can run 'gridmgr -t -f conffile'. The test will not change any files but will explain what it would do. The resulting grid-mapfile will be printed to standard out followed by any notification that would have been sent. Check the comments in the grid-mapfile for reasons why subjects were denied. If you wish to map a VO or subgroup to a shared local account you should add a line of the following format (all on the same line):
vo-users = ldap://belle-vo.ph.unimelb.edu.au/ou=People,o=AusGrid,o=Grid
local-user=ausgrid
This is the actual entry for the Aus-Grid Research testbed.
Here 'ausgrid' is the shared local account.
If you wish to map a VO or subgroup to local accounts matching the Grid
subject common name to the full name of the local account
add a line of the following format (all on the same line):
vo-users = ldap://belle-vo.ph.unimelb.edu.au/ou=People,o=AusGrid,o=Grid
local-user=<match> allow-groups=grid,testing
In this example access will only be given to local accounts that are in
group 'grid' or 'testing'.
You should also ensure that the setting 'notify-user-change' is set to 'true'
as local account full names are tainted. If your notify-mail settings are
correct it will notify you of any modified account mappings.
You will also need to include the VO list of trusted certificate authorities
by adding a line of the following format (all on the same line):
vo-certs = ldap://belle-vo.ph.unimelb.edu.au/ou=CAFiles,ou=Documents,o=AusGrid,o=Grid
If you require greater security you should ensure your notification settings
are correct. Make sure your 'notify-mail-address' setting is correct and
that the 'notify-mail-command' works for root. All other 'notify-*'
setting should be 'true'. At the very least, the 'cert-cafile-check'
setting should be 'true' to prevent malicious CA certificate spoofing.
External ToolsYou can use any LDAP browser to view VO LDAP entires. For example, you can BROWSE the AusGrid VO online using LDAPExplorer (get it from Debian-stable). I recommend the java application LDAP Browser/Editor for the management of LDAP databases or VO entries.SupportEmail Lyle Winton (winton @ physics.unimelb.edu.au) if you require any help or have any bug fixes. Have fun.EPPGrid.SoftwareGridMgr moved from EPP.GridToolsGridMgr on 15 Feb 2005 - 04:14 by Main.LyleWinton - put it back
| |