Download
FAQ History |
API
Search Feedback |
Adding and Deleting Users
To add a new user to the Registry Server database, you use the script
registry-server-test.bat
(Windows) orregistry-server-test.sh
(UNIX), in the directory<
JWSDP_HOME
>/registry-server/samples/
. This script uses files in the directory<
JWSDP_HOME
>/registry-server/samples/xml/
. You use the same script to delete a user.Adding a New User to the Registry
To add a new user to the Registry Server database, you use the file
UserInfo.xml
in thexml
subdirectory. Perform the following steps:
- Go to the directory
<
JWSDP_HOME
>/registry-server/samples/
.- Open the file
xml/UserInfo.xml
in an editor.- Change the values in the
<fname>
,<lname>
, and<uid>
tags to the first name, last name, and unique user ID (UID) of the new user. The<uid>
tag is commonly the user's login name. It must be unique.- Change the value in the
<passwd>
tag to a password of your choice. This is the password for the new user. Do not modify the<tokenExpiration>
or<authInfo>
tag.- Save and close the
UserInfo.xml
file.- Type the following command (all on one line):
Windows:
registry-server-test run-cli-request
-Drequest=xml\UserInfo.xmlUNIX:
registry-server-test.sh run-cli-request
-Drequest=xml/UserInfo.xmlDeleting a User from the Registry
To delete a user from the registry, you use the file
UserDelete.xml
in thexml
subdirectory.Before you run the script this time, edit this file by modifying the values in the
<fname>
,<lname>
,<uid>
, and<passwd>
tags.To delete the user, use the following command:
Windows:
UNIX:
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.