Sun Java System Access Manager 7.1 Developer's Guide

ProcedureTo Test the Command Line

To test the command line you can run the servlet test above, cut and paste the cookie value and pass it in as the token value.

  1. Use a browser to access the following URL:

    http://test-server.sun.com:80/amserver/SSOTokenSampleServlet

    The following output is displayed:

    SSOToken host name: 123.123.123.123 (Your server's ip address)
    	SSOToken Principal name: uid=amAdmin,ou=People,dc=example,dc=com
    	Authentication type used: LDAP
    	IPAddress of the host: 123.123.123.123 (Your server's ip address)
    	The token id is AQIC5wM2LY4Sfcwbdp3gWuB38NA26klnTJlLPknN8t0fPVY=
    	Property: Company is - Sun Microsystems
    	Property: Country is - USA
    	SSO Token Validation test Succeeded
    
  2. In the AccessManager-base/SUNWam/samples/sso directory, execute the run command:

    run AQIC5wM2LY4Sfcwbdp3gWuB38NA26klnTJlLPknN8t0fPVY=

    The following result is displayed:

    SSO "AQIC5wM2LY4Sfcwbdp3gWuB38NA26klnTJlLPknN8t0fPVY="
    	SSOToken host name: 123.123.123.123 (Your server's ip address)
    	SSOToken Principal name: uid=amAdmin,ou=People,dc=example,dc=com
    	Authentication type used: LDAP
    	IPAddress of the host: 123.123.123.123 (Your server's ip address)