Administrators are a special class of users that can manage the EMS server. Administrators create, modify, and delete users, destinations, routes, factories, and other items. In general, administrators must be granted permission to perform administration activities when using the administration tool or API. Administrators can be granted global permissions (for example, permission to create users or to view all queues), and administrators can be granted permissions to perform operations on specific destinations (for example, purging a queue, or viewing properties for a particular topic).
There is a special, predefined user named admin that can perform any administrative action. You cannot grant or revoke any permissions to
admin. You must assign a password for
admin immediately after installation. For more information about changing the
admin password, see
When You First Start tibemsadmin.
There is also a special group named $admin for system administrator users. When a user becomes a member of this group, that user receives the same permissions as the
admin user. You cannot grant or revoke administrator permissions from any user that is a member of the
$admin group. You should only assign the overall system administrator(s) to the
$admin group.
You grant and revoke administrator permissions to users using the grant and
revoke commands in
tibemsadmin, or by means of the Java o
r .NET admin API. You can either grant global administrator permissions or permissions on specific destinations. See
Global Administrator Permissions for a complete list of global administrator permissions. See
Destination-Level Permissions for a description of administrator permissions for destinations.
Global and destination-level permissions are granted and revoked separately using different administrator commands. See
Command Listing for the syntax of the
grant and
revoke commands.
If a user has both global and destination-level administrator permissions, the actions that user can perform are determined by combining all global and destination-level administrator permissions granted to the user. For example, if an administrator is granted the
view-destination permission, that administrator can view information about all destinations, even if the view permission is not granted to the administrator for specific destinations.
The admin user or all users in the
$admin group can grant or revoke any administrator permission to any user. All other users must be granted the
change-admin-acl permission and the
view-user and/or the
view-group permissions before they can grant or revoke administrator permissions to other users.
If a user has the change-admin-acl permission, that user can only grant or revoke permissions that have been granted to the user. For example, if user
BOB is not part of the
$admin group and he has only been granted the
change-admin-acl and
view-user permissions,
BOB cannot grant any administrator permissions except the
view-user or
change-admin-acl permissions to other users.
Users have all administrator permissions that are granted to any group to which they belong. You can create administrator groups, grant administrator permissions to those groups, and then add users to each administrator group. The users will be able to perform any administrative action that is allowed by the permissions granted to the group to which the user belongs.
Any destination-level permission granted to a user or group for a wildcard destination is inherited for all child destinations that match the parent destination.
If protection permissions are set up, administrators can only grant or revoke permissions to other users that have the same protection permission as the administrator. See
Protection Permissions for more information about protection permissions.
An administrator can only perform actions for which the administrator has been granted permission. Any action that an administrator performs may be limited by the set of permissions granted to that administrator.
For example, an administrator has been granted the view permission on the
foo.* destination. This administrator has not been granted the global
view-destination permission. The administrator is only able to view destinations that match the
foo.* parent destination. If this administrator is granted the global
view-acl permission, the administrator is only able to view the access control list for destinations that match the
foo.* parent. Any access control lists for other destinations are not displayed when the administrator performs the
showacl topic or
showacl queue commands.
If the administrative user attempts to execute a command without permission, the user may either receive an error or simply see no output. For example, if the administrator issues the
showacl queue bar.foo command, the administrator receives a “Not authorized to execute command” error because the administrator is not authorized to view any destination except those that match
foo.*.
Table 35 describes the global administrator permissions.
Global permissions are stored in the acl.conf file, along with all other permissions. Global permissions in this file have the following syntax:
For example, if a user named BOB is granted the
view-user global administration permission and the group
sys-admins is granted the
change-acl permission, the following entries are added to the
acl.conf file:
Administrators can be granted permissions on each destination. Destination-level permissions control the administration functions a user can perform on a specific destination. Global permissions granted to a user override any destination-level permissions.
The typical use of destination-level administration permissions is to specify permissions on wildcard destinations for different groups of users. This allows you to specify particular destinations over which a group of users has administrative control. For example, you may allow one group to control all
ACCOUNTING.* topics, and another group to control all
PAYROLL.* queues.
Table 36 describes the destination-level administration permissions.
Administration permissions for a destination are stored alongside all other permissions for the destination in the
acl.conf file. For example, if user
BOB has publish and subscribe permissions on topic
foo, and then
BOB is granted view permission, the acl listing would look like the following:
|
Both user and administrator permissions for a destination are stored in the same entry in the acl.conf file. This is for convenience rather than for clarity. User permissions specify the actions a client application can perform on a destination (publish, subscribe, send, receive, and so on). Administrator permissions specify what administrative commands the user can perform on the destination when using the administration tool or API.
|
Protection permissions allow you to group users into administrative domains so that administrators can only perform actions within their domain. An administrator can only perform administrative operations on a user that has the same protection permission as the user. There are four protection permissions (
protect1,
protect2,
protect3, and
protect4) that allow you to create four groups of administrators. Protection permissions do not apply to the
admin user or users in the
$admin group — these users can perform any action on any user regardless of protection permissions.
To use protection permissions, grant one of the protection permissions to a set of users (either individually, or to a defined group(s)). Then, grant the same protection permission to the administrator that can perform actions on those users.
For example, there are four departments in a company: sales, finance, manufacturing, and system administrators. Each of these departments has a defined group and a set of users assigned to the group. Within the system administrators, there is one manager and three other administrators, each responsible for administering the resources of the other departments. The manager of the system administrators can perform any administrator action. Each of the other system administrators can only perform actions on members of the groups for which they are responsible.
The user name of the manager is mgr, the user names of the other system administrators are
admin1,
admin2, and
admin3. The following commands illustrate the grants necessary for creating the example administration structure.
|
You can grant a protection permission, in addition to the all permission. This signifies that the user has all administrator privileges for anyone who also has the same protection permission. However, if you revoke the all permission from a user, all permissions, including any protection permissions are removed from the access control list for the user.
|
An administrator is able to view users that have a different protection permission set, but the administrator can only perform actions on users with the same protection permission.
For example, admin1 can perform any action on any user in the
sales group, and can view any users in the
manufacturing or
finance groups. However,
admin1 is not able to grant permissions, change passwords, delete users from, or perform any other administrative action on users of the
manufacturing or
finance groups. The
mgr user is able to perform any action on any user, regardless of their protection permission because
mgr is a member of the
$admin group.