This document has the following sections:
A security realm contains users and/or groups plus their associated access control lists (ACL). The access control list for a user in a particular realm specifies the privileges that user is granted to access server resources. Resources include such things as files, directories, and servlets.
The Access Control Lists page allows you to add and delete access control lists, and to add or delete the users and groups they contain, for a given Realm. Access control lists let you control the users and groups and computers that access your web pages and other server resources.
The basic default permissions (if no user is granted any specific permissions) are:
To allow PUT or DELETE for a user in a given Realm, you must specifically create an Access Control List with that permission.
Note: To enforce access control, you must first enable it in the
Network Setup page.
Settings
The Access Control page has two functions you can carry out.
You can add and remove access control lists (ACLs) using
the Add ACL/Remove ACL function,
and you can add and remove permissions from access control lists
using the Add Permission and Remove Permission buttons.
Realm
A realm is a database of users, groups, and access control lists.
It is used to specify which users have access to the resources of
a specific service (for example, the Web Page Service).
The JavaTM Web ServerTM uses the list of users in the database to identify the customers for the service. Users that are not included in the realm cannot be added to any access control list for the service. Users not on an access control list are generally denied the use of the service.
In some cases, a service does not require that its customers be in an access control list. For example, many web page (HTTP) services make their documents available to all users without requiring that they be registered in an ACL first.
Specific access control policies are applied to both users and groups in the database. For example, one user (or group) may be granted only GET permission to the service, and thus only be able to retrieve and read documents from it. Another user (or group), however, may be granted both GET and POST permissions, meaning that the user (or the members of the group) can add documents for display, as well as read them. Both users (or groups) are in the same realm, but the access control policies applied to them are different.
Note: Individual access control permissions take precedence over group settings. For example, if a user in a group has both GET and POST access, but the group has only GET access, the user is still able to do both GET and POST.
By assigning specific access settings to each user and each group, you can control precisely how the resources of a service are used, and by whom.
The Java Web Server has the following security realms:
getpwent()
routines. This realm lets the server use
HTTP "Basic" authentication with users' UNIX passwords.
Note: On the UNIX realm, it is not possible to add a user through the Java Web Server. The UNIX realm is controlled through the DNS database and users must be added through that mechanism.
Note: To access NT realms, the server has to be run as Administrator and special rights ("Act as part of operating system") have to be granted to the Administrators group. To do this:
Access Control Lists (ACLs)
Lists the names of the access control lists associated with the realm
that is being displayed. Each access control list has defined users
and groups, and defined permissions that pertain to each of those users
and groups. The access control list for the Realm controls who has
access to that realm on the Java Web Server.
Note: In the servletMgrRealm
, permissions are only
recognized if they are set in the servletACL
. The Java
Web Server does not recognize permissions for servlets if they are set
in a newly created ACL.
Note: For any given user in a group, the user's access control permissions always take precedence over the group's permissions.
To Allow Access Only From a Specific Computer:
To Delete an Entry in an Access Control List:
For Servlets, there are eight different permissions that can be denied or allowed. These are:
java.lang.system
.
The Add Permission box has the following five buttons:
Buttons
To make changes to the Access Control Lists page and have those settings
take affect, use the two buttons at the bottom of the screen. These
are:
Top java-server-feedback@java.sun.com |
Copyright © 1997
Sun Microsystems, Inc. All Rights Reserved. |