Managing Java CAPS Users

Managing Repository Users

This category includes the following users:

The admin and Administrator users are responsible for creating these users and for assigning the appropriate roles.

User management changes take effect immediately. You do not need to restart the Repository.

For information about how to use a Lightweight Directory Access Protocol (LDAP) server to manage Repository users, see Using LDAP with Java CAPS.

Repository User Names and Roles

The Repository includes the following default users.

Table 1–1 Default Repository Users

User Name 

Default Password 

admin

adminadmin 

Administrator

STC 

User names can contain alphabetic, numeric, or underscore characters. User names must begin with an alphabetic character. Multibyte characters are not supported. User names are case sensitive.

Roles enable you to organize users into groups. Each user name is associated with one or more predefined roles.

The following table describes the predefined roles for Repository users. The default Repository users have all of these roles. When you create a user, you can limit what the user can do by assigning only the appropriate roles. The all role is mandatory for each user.

Table 1–2 Predefined Roles (Repository)

Role 

Tasks Allowed 

all

A user name with this role can: 

  • Work with Java CAPS Repository-based projects in the NetBeans IDE

  • Perform downloads in the Java CAPS Uploader

administration

A user name with this role has the privileges of the all role, plus the following privilege:

  • Perform uploads in the Java CAPS Uploader

management

This role has been deprecated. 

If a user has more than one role, then the user’s privileges are the combined privileges from all of the user’s roles.


Note –

The admin and Administrator users are the only users that can create other users.


Adding and Deleting Repository Users

You can add and delete Repository users from the NetBeans IDE.

ProcedureTo Add a Repository User

  1. In the NetBeans IDE, choose Tools > CAPS Repository > Maintain Users.

    The User Management dialog box appears.

  2. Click Add.

    The second User Management dialog box appears.

  3. In the User field, enter a name for the user.

    User names can contain alphabetic, numeric, or underscore characters. User names must begin with an alphabetic character. Multibyte characters are not supported. User names are case sensitive.

  4. In the Password field, enter a password for the user.

    Multibyte characters are not supported.

  5. In the Confirm Password field, enter the password again.


    Note –

    Each user is automatically assigned to the all role, which is required to connect to the Repository.


  6. Click OK.

    The user name is added to the list in the initial User Management dialog box. This user can now log in with the assigned user name and password.

  7. Click Close.

ProcedureTo Delete a Repository User

  1. In the NetBeans IDE, choose Tools > CAPS Repository > Maintain Users.

    The User Management dialog box appears.

  2. Select the user and click Delete.

    The user is removed from the list.

  3. Click Close.


    Note –

    You cannot delete the admin user or the Administrator user.


Adding and Deleting Roles

You can add and delete roles for a Repository user. You perform these procedures in the NetBeans IDE.


Note –

You cannot delete the all role for a user.


ProcedureTo Add a Role for a Repository User

  1. In the NetBeans IDE, choose Tools > CAPS Repository > Maintain Users.

    The User Management dialog box appears.

  2. Select the user and click Modify.

    The second User Management dialog box appears.

  3. Click Add Role.

    The Add Role dialog box appears.

  4. Select the desired role and click OK.

    The new role appears in the list for the selected user.

  5. Click OK.

  6. Click Close.

ProcedureTo Delete a Role for a Repository User

  1. In the NetBeans IDE, choose Tools > CAPS Repository > Maintain Users.

    The User Management dialog box appears.

  2. Select the user and click Modify.

    The second User Management dialog box appears.

  3. Select the role that you want to delete and click Delete Role.

    The role disappears from the list.

  4. Click OK.

  5. Click Close.

Changing Passwords

The following procedure describes how users can change their password.

ProcedureTo Change a Password

  1. In the NetBeans IDE, choose Tools > CAPS Repository > Maintain Users.

    The User Management dialog box appears.

  2. Select the user and click Modify.

    The second User Management dialog box appears.

  3. In the Password field, enter the new password for the user.

    Multibyte characters are not supported.

  4. In the Confirm Password field, enter the password again.

  5. Click OK.

  6. Click Close.

Creating Roles

You can create roles in addition to the predefined roles. This feature provides a means for organizing users into groups.

ProcedureTo Create a Role for a Current User

  1. In the NetBeans IDE, choose Tools > CAPS Repository > Maintain Users.

    The User Management dialog box appears.

  2. Select the user and click Modify.

    The second User Management dialog box appears.

  3. Click Add Role.

    The Add Role dialog box appears.

  4. Click Create Role.

    The Role dialog box appears.

  5. In the Role field, type the name of the new role that you are creating.

    Multibyte characters are not supported.

  6. Click OK.

    The new role has been added to the list.

  7. Select the new role and click OK.

    The role is added for the selected user.

  8. Click OK.

  9. Click Close.