If necessary, unzip opensso_enterprise_80.zip and then unzip zip-root/opensso/samples/opensso-client.zip.
Make sure that your JAVA_HOME environment variable points to a JDK 1.5 or 1.4 installation.
Change to the opensso-client-zip-root/sdk directory.
Note: You can invoke the sample scripts only from the /sdk parent directory and not directly from the /scripts directory.
Follow the instructions in the README file to configure the AMConfig.properties file and to setup and compile the sample applications.
Note: You need to setup and compile the sample command-line applications only once. If the sample applications are already compiled, continue with the next step.
Run the sample command-line logging sample script from the /sdk directory. For example:
Solaris and Linux systems: scripts/CommandLineLogging.sh
The logging sample program prompts you for the subject user's identifier and password, log file to use, message to log, logging user's identifier and password, and the realm (both users must be in the same realm).
Either accept the default values for the prompts or specify your preferred values. For example:
Subject Userid [user1]: accepted default Subject Userid user1 password [user1password]: user1-password Log file [TestLog]: accepted default Log message [Test Log Record]: accepted default LoggedBy Userid [amadmin]: accepted default LoggedBy Userid's password [amadminpswd]: amadmin-password Realm [/]: accepted default ==>Authentication SUCCESSFUL for user user1 ==>Authentication SUCCESSFUL for user amadmin LogSample: Logging Successful !!!
Check the TestLog created in the OpenSSO Enterprise server log directory.
The default log directory is ConfigurationDirectory/depoly-uri/log.
For example: /opensso/opensso/log