Role Mapping and Security

Role mapping is the process of authorising a client's request to access a data resource. Role mapping is a two-step process:

  1. Check whether the client is allowed to access the data resource.
  2. Determine the database user name and password (or role) to be used for this client.

A role map document contains the information required to undertake this process. A role map document specifies the credentials which must be supplied by clients to access a data resource and how these map to database user names and passwords.

The locations of the role map document for a specific data resource and the Java class used to execute the role map process is specified within the data resource configuration document described earlier.

Role mapping is intended to be "pluggable". That is you can specify your own role map class within a data resource configuration document and so use your own form of role map document if desired.

OGSA-DAI Role Map Documents

OGSA-DAI provides support for two forms of role map document. Both these documents provide data resource-specific mappings from X509 certificate credentials to database usernames and passwords: