Sun Java System Access Manager 7.1 Developer's Guide

ProcedureTo Run the Sample Programs on Windows 2000

  1. In the make.bat file, set the following variables:

    BASE

    Set this to refer to the where Access Manager server is installed.

    JAVA_HOME

    Set this variable to your installation of the JDK. The JDK version should be greater than or equal to 1.3.1_06.

    JDK14

    Set this variable to true if your JAVA_HOME points to JDK 1.4 or newer version. Otherwise, set it to false.

    LOCAL_LOGGING

    Set this variable to true if you are executing this sample at complete Access Manager installation which will perform local logging. If you are executing this sample from an SUNWamsdk only install then set it to false which will perform remote logging (logging at server side).

  2. Set the LD_LIBRARY_PATH as is appropriate for your installation.

  3. Compile the program by running the make command.

  4. Run the sample program by running the make run command:

    make run [-o organizationName]
    			[-u userName -p  userPassword]	-n logName  
    						-m message -l  loggedByUser 
    										-wloggedByUserPassword
    
    orgName

    Name of the organization. This is an optional parameter. If a value is not provided, Access Manager assumes the value to be the root organization.

    userName

    Name of the user on whose behalf the logging is performed. This is an optional parameter.

    userPassword

    Password for authenticating the user. This value must be provided if userName is provided.

    logName

    Name of the log file.

    message

    Message to be logged to the log file.

    loggedByUser

    Name of the administrator user who is logging the message.

    loggedByUserPassword

    Password to authenticate the administrator user.

    Example:

    c> make run -u amadmin -p 11111111 -n testLog.access 
    			-m "trying test logging" -l amadmin -w 11111111