Download
FAQ
History
PrevHomeNext API
Search
Feedback
Divider

Adding and Deleting Users

To add a new user to the Registry Server database, you use the script registry-server-test.bat (Windows) or registry-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 the xml subdirectory. Perform the following steps:

  1. Go to the directory <JWSDP_HOME>/registry-server/samples/.
  2. Open the file xml/UserInfo.xml in an editor.
  3. 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.
  4. 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.
  5. Save and close the UserInfo.xml file.
  6. Type the following command (all on one line):
  7. Windows:

    registry-server-test run-cli-request
      -Drequest=xml\UserInfo.xml

    UNIX:

    registry-server-test.sh run-cli-request
      -Drequest=xml/UserInfo.xml

Deleting a User from the Registry

To delete a user from the registry, you use the file UserDelete.xml in the xml 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:

registry-server-test run-cli-request 
  -Drequest=xml\UserDelete.xml 

UNIX:

registry-server-test.sh run-cli-request 
  -Drequest=xml/UserDelete.xml 
Divider
Download
FAQ
History
PrevHomeNext API
Search
Feedback
Divider

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.