Show TOC Anfang des Inhaltsbereichs

Vorgehensweisen Mapping Security Roles Dokument im Navigationsbaum lokalisieren

Use

Use this procedure to map the security roles defined for the application to server security roles. These mappings are stored in ejb-j2ee-engine.xml.

Prerequisites

The security roles are defined in ejb-jar.xml.

Procedure

...

       1.      Open the ejb-j2ee-engine.xml.

       2.      From the right-hand pane, choose the Security Roles tab.

The security roles defined in ejb-jar.xml are displayed in the left-hand pane of the Security Roles tab.

       3.      Select the security role that you want to map.

Hinweis

By default, the No mappingoption is chosen, that is, the EJB application will be deployed without specifying the corresponding security role mapping. In this case, the mapping must be specified after deployment by using the StrukturlinkSecurity Provider Service.

       4.      Choose the Role based mapping option and either enter the server role name in the corresponding field, or choose one of the default options (administrators, all, guests) from the drop-down list.

Achtung

If you have mapped your security roles to groups or users, you will only be able to view this mapping in the User based mapping option -> Group names or User names. However, this mapping is deprecated and will not be possible in NetWeaver 2005.

Result

The mapping is stored in the <security-permission> element in the deployment descriptor.

Example

The following code shows the result mapping of the carCustomer application security role to the guests server security role.

<security-permission>

   <security-role-map>

      <role-name>carCustomer</role-name>

      <server-role-name>guests</server-role-name>

   </security-role-map>

</security-permission>

 

 

Ende des Inhaltsbereichs