|
Configuring Groups This article describes what Groups are and how they are normally configured with the default UserManager. 1 Introduction This article describes what Groups are and how they are normally configured with the default UserManager in the Orion Application Server. 2 Overview Orion handles security identities through the notion of Groups and Users. A Group consists of a number of users as described here. Apart from containing a number of Users a Group can also be given permissions (see below). A J2EE application uses Roles to define access to resources within the application. These Roles are then mapped to the Groups and/or Users defined in the Orion Application Server. The J2EE specification defines Roles but do not define how these should be mapped to security identities in the Application Server. The notion of groups and Users are therefore Orion specific, as is the procedure of adding Groups and Users. Groups can consist of any number of Users as described here. 3 Configuring Groups In order to define available Groups these has to be made available to the Orion Application Server. This is done by adding the name of the Group together with an optional description to the applications principals.xml file (found in the deployment directory of the application). If the Group should be globally available it should be added to the principals.xml file of the global application (normally found at orion/config/principals.xml). A globally defined Group is known to all Applications deployed on the Server in question, while a locally defined Group is known to the specific Applicaion only. A locally defined Group with the same name as a globally defined Group will override the global Group. A sample Group definition can be found in listing 1 below.
In the listing above, 3 groups are defined; "administrators" with the right to administrate the server, "guests" who are the default group for anonymous access and "users" with the right to login to the server over RMI. Each group node contains the tags to hold the groups name, a description and none or more permissions. 4 Configuring Groups using the console
This section describes how to use the Orion Console to manage Groups. The topics covered are: 4.1 Adding a Group This section describes how to use the Orion Console to add a new Group to an Application. The new Group should now be listed in the Groups section of the Users and Groups view. 4.2 Changing a Group This section describes how to use the Orion Console to change a Group that already exists in a Application.. The Group should now be listed in its changed form in the Groups section of the Users and Groups view. 4.3 Removing a Group This section describes how to use the Orion Console to remove an existing Group from a Application.. The Group should now be removed from the list of available Groups in the Groups section of the Users and Groups view. 5 Permissions The Orion Application Server comes with two predefined permissions that can be given to groups: Administration (com.evermind.server.AdministrationPermission) - the user is allowed to administrate the server rmi:login (com.evermind.server.rmi.RMIPermission) - the user is allowed to login over RMI New permissions can be added by specifying the class-name of a class that extends java.security.Permission. Copyright © 2005 IronFlare AB |