i-Planet Administration Guide

Configuring and Testing Classpath Settings

The command-line utility is a Java class called UserAdminCL. Before you can run UserAdminCL, you must be root on your i-Planet server and have the classes shown in Table 4-1 in your classpath:

Table 4-1 Classes for UserAdminCL

Package 

Default Location 

com.sun.stnr.useradmin.UserAdminCL

/opt/SUNWstnr/lib/useradmin.jar

com.sun.sunnet.SNUtils

/opt/SUNWjeev/classes/SNUtils.jar

com.sun.sunnet.preferences

/opt/SUNWjeev/classes/preference_servlet.jar

com.sun.stnr.common

/opt/SUNWjeev/classes/common.jar

Java 1.1 JDK 

/usr/java/lib/classes.zip

Setting Your Classpath

Use the following procedure to set your classpath so you can use UserAdminCL.

To Set Your Classpath
  1. As root, type the following command to set your classpath:


    # CLASSPATH=/opt/SUNWjeev/classes/SNUtils.jar:/opt/SUNWjeev/classes\
    
    /preference_servlet.jar:/opt/SUNWjeev/classes/common.jar:/usr/java/lib\
    
    /classes.zip:/opt/SUNWstnr/lib/useradmin.jar

  2. Type the following command to export your classpath:


    # export CLASSPATH

Verifying the Settings to Use UserAdminCL

Use the following procedure to verify the settings to use UserAdminCL:

To Verify Settings to Use UserAdminCL
  1. As root, type the following command to run UserAdminCL:


    # java com.sun.stnr.useradmin.UserAdminCL
    

If you see the following usage message, you are ready to use UserAdminCL.


com.sun.stnr.common.CommandLineException: missing switch: +action
usage: [jre|java] com.sun.stnr.useradmin.UserAdminCL +action

[create|delete|get|list] [-srclogin] [-destlogin] [-usersfile]

[-defsfile] [-older] [-nologin] [-debug] [-interactive]

If you see other error messages, verify your classpath and try again.