Verify OpenSSO Attributes

Introduction

When deployed OpenSSO or Access Manager to secure Web Applications often times it is desirable to "know" what attributes are being returned from OpenSSO to determine certain behavior of a particular application. The Webspace Server provides with an add-on to integrate with OpenSSO and implements Client SDK to accomplish the authentication with OpenSSO. This has been explained in detail at http://wikis.sun.com/display/websynergy/OpenSSO+add-on.

In case, the authentication issues come up where a user successfully authenticates against OpenSSO but can't login into Web Space server it is very likely that the required attributes are not returned from the OpenSSO via client sdk. The Web Space server logs provide the necessary information about the attributes returned and other related messages. This might require administration access to the log files on the file system.

This Wiki provides information about a tool "GetAMAttrs" which is a web application that would display the attributes returned from OpenSSO/AM. This helps debug any authentication related issues that stem from the returned attributes. The tool requires an authenticated session in the browser. Essentially, a user will authenticate to the OpenSSO before accessing CheckAMAttrs application. Following picture depicts the sample output.

In the above picture, user with login ID "tuser3" has populated with all required attributes sn,cn,givenName and mail. This user should have no problem logging into Webspace server.

Note

If the OpenSSO add-on is mapped with different attributes then look for those configured attributes.

Installation

  1. Download the CheckAMAttrs.war file.
  2. Extract the AMConfig.properties file
    jar xf CheckAMAttrs.war WEB-INF/classes/AMConfig.properties
    
  3. Update/Replace AMConfig.properties file extracted above
    cp <GF Install Dir>/domains/domain1/applications/j2ee-modules/webspace/WEB-INF/classes/AMConfig.properties WEB-INF/lib/
    
  4. Extract the lib directory
    jar xf CheckAMAttrs.war WEB-INF/lib
    
  5. Obtain the openssso-clientsdk.jar from either opensso website or from the existing deployed webspace directory.
    cp <GF Install Dir>/domains/domain1/applications/j2ee-modules/webspace/WEB-INF/lib/openssoclientsdk-8.0.b6.jar WEB-INF/lib/
    
  6. Update the CheckAMAttrs.war file
    jar uf CheckAMAttrs.war WEB-INF/classes/AMConfig.properties
    jar uf CheckAMAttrs.war WEB-INF/lib/openssoclientsdk-8.0.b6.jar
    
  7. Deploy the CheckAMAttrs.war file to GlassFish server either by copying into autodeploy directory or using amadmin command.
  8. Access the application at /ChckAMAttrs context. For example, http://webspace.mydomain.com:8080/CheckAMAttrs
Important

It is important to copy the client sdk jar and AMConfig.properties from the existing opensso addon-on install directory, though the opensso client sdk downloaded from the opensso web site would work. It is to ensure that both opensso add-on and CheckAMAttrs are using the same version of the client sdk initially to debug any potential login issues.

How to Use

  1. Goto OpenSSO login page and authenticate as a user. For example, http://opensso.mydomain.com:8080/opensso/UI/Login
  2. After successful authentication, access GetAMAttrs application. For example, http://webspace.mydomain.com:8080/CheckAMAttrs

If the following is displayed on the Browser,

then it means that

the OpenSSO/AM authentication has not happened and user must authenticate to display the attributes. or
possible configuration issue in AMConfig.properties

Labels

glassfish glassfish Delete
portfolio portfolio Delete
portal portal Delete
webspace webspace Delete
websynergy websynergy Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Sign up or Log in to add a comment or watch this page.


The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact