Download
FAQ History |
![]() ![]() ![]() |
API
Search Feedback |
Administering Roles, Groups, and Users
The following sections show how to use
admintool
to do the following:Managing Roles
To view all existing roles in the realm, select Roles from the User Definition section in the left pane.
The Roles List and Role Actions list display in the right pane. By default, the roles defined during Java WSDP installation are displayed. These roles include
admin
andmanager
.Use the following procedure to add a new role to the default realm.
Use the following procedure to remove a role from the default realm.
If you entered a new role of
customer
, thetomcat-users.xml
file would now look like this:<?xml version='1.0'?> <tomcat-users> <role rolename="customer" description="Customer of Java Web Service"/> <role rolename="manager"/> <role rolename="admin"/> <user username="your_name" password="your_password" roles="admin,manager"/> </tomcat-users>Managing Users
To view all existing users in the realm, select Users from the User Definition section in the left pane.
The Users List and User Actions display in the right pane. By default, the user name defined during Java WSDP installation is displayed.
Use the following procedure to edit a user's profile.
Use the following procedure to add a new user to the default realm.
Use the following procedure to remove a user from the default realm.
The addition of a new role and user as described in the previous section are reflected in the updated
tomcat-users.xml
. If I added a new user named Anil and assigned him the role ofcustomer
, the updatedtomcat-users.xml
would look like this:<?xml version='1.0'?> <tomcat-users> <role rolename="customer" description="Customer of Java Web Service"/> <role rolename="manager"/> <role rolename="admin"/> <user username="your_name" password="your_password" roles="admin,manager"/> <user username="Anil" password="13345" fullName="" roles="customer"/> </tomcat-users>
Download
FAQ History |
![]() ![]() ![]() |
API
Search Feedback |
All of the material in The Java(TM) Web Services Tutorial is copyright-protected and may not be published in other works without express written permission from Sun Microsystems.