+

Search Tips   |   Advanced Search

Assigning users to RunAs roles

We can learn how to assign users to the RunAs roles for the application.

Complete the following tasks:

When a user ID and password is assigned to a RunAs role, validation occurs using the current active user registry configured. By default, the local operating system registry is set as the active user registry. Therefore, when an application is installed and security is disabled on the server, the local operating system registry is used to validate the user ID and password assigned to the RunAs Role. If the intended registry for the application is not local operative system, the validation fails. Therefore, map RunAs roles to users when the security is enabled on the server. However, if the active user registry and the intended registry after enabling security are the same, we can assign the user to a RunAs role when security is disabled.

If the Everyone or All Authenticated special subjects are assigned to a role, validation does not occur for that role.

Validation is done every time you click Apply in this panel or when you click OK in the Security role to user/group mapping panel. The check verifies that all the users in all the RunAs roles do exist directly or indirectly through a group in those roles in the Security role to user/group mappings panel. If a role is assigned both a user and a group to which that user belongs, we can delete either the user or the group from the Security role to user/group mapping panel.

If the RunAs role user belongs to a group and if that group is assigned to that role, verify the assignment of this group to the role is done through the console and not through an assembly tool or other method. When using the console, the full name of the group is used (for example, hostname\groupName in Windows systems and distinguished names (DN) in LDAP). During the check, all the groups to which the RunAs role user belongs are obtained from the user registry. Because the list of groups that are obtained from the user registry are the full names of the groups, the check works correctly. If the short name of a group is entered using an assembly tool, for example group1 instead of CN=group1, o=myCompany.com, this check fails.

These steps are common to both installing an application and modifying an existing application. If the application contains RunAs roles, you see the User RunAs roles link during application installation and also during managing applications as a link in the Additional properties section.

  1. Click Applications > Enterprise Applications > application_name.

  2. Under Detail Properties, click Security role to user/group mapping. A list of all the RunAs roles that belong to this application display. If the roles already have users assigned, they display here.

  3. To assign a user, select the role. We can select multiple roles at the same time if the same user is assigned to all the roles.

  4. Enter the user's name and password in the designated fields. The user name entered can be either the short name, which is preferred, or the full name, as seen when getting users and groups from the user registry.

  5. Click Apply. The user is authenticated using the active user registry. If authentication is successful, a check is made to verify that this user or group is mapped to the role in the Map security roles to users and groups panel. If authentication fails, verify that the user and password are correct and that the active registry configuration is correct.

  6. To remove a user from a RunAs role, select the roles and click Remove.


Results

The RunAs role user is added to the binding file in the application. This file is used for delegation purposes when accessing Java EE resources. This step is required to assign users to RunAs roles so that during delegation the appropriate user is used to invoke the EJB methods.


What to do next

If we are installing the application, complete installation. After the application is installed and running, we can access your resources according to the RunAS role mapping. Save the configuration.

If we manage applications and modify User RunAs roles, make sure you save, stop, and restart the application so that the changes become effective. Try accessing the Java EE resources to verify that the new changes are in effect.


Subtopics


Related tasks

  • Assigning users and groups to roles