SSM Installation and Configuration Guide

     Previous  Next    Open TOC in new window    View as PDF - New Window  Get Adobe Reader - New Window
Content starts here

Configuring the WebSphere SSM

This section describes how to configure and set up the WebSphere SSM. It also contains a simple Policy Query Web Application that shows how to retrieve basic security services, and use them to do authentication and authorization.

 


Prerequisites

WARNING: If the WLS or WLS 8.1 SSM is running on the same machine, the WebSphere SSM must be installed and run in a different BEA_HOME. During installation in the new BEA_HOME, be sure to enter different values for the SCM name.

 


Configuration Steps

  1. After the WebSphere SSM is installed, make sure the following steps have been completed:
  2. Enrollment

    Define a SCM in the ALES Database

    Run asipassword

  3. Create the WebSphere SSM instance by running BEA_HOME\ales30-ssm\websphere-ssm\adm\instancewizard.cmd.
  4. In Windows, this can be done by opening the Start menu and selecting BEA AquaLogic Enterprise Security > Security Service Module > Websphere Security Service Module > Create New Instance.

  5. If you are using a MS SQL, PointBase, or DB2 database, the location of the JDBC driver must be specified by opening INSTANCE_HOME/bin/set-env.bat (or set-env.sh) in an editor and appending the JDBC driver to the CLASSPATH environment variable.
  6. Example:

    set CLASSPATH=%CLASSPATH%;%INSTALL_HOME%\lib\antlr.jar
    set CLASSPATH=%CLASSPATH%;%INSTALL_HOME%\lib\jaxrpc.jar
    set CLASSPATH=%CLASSPATH%;f:\pbclient51.jar
  7. Set up the JavaAPIExample in the BEA_HOME/ales30-ssm/websphere-ssm/examples directory.
  8. Start the SCM and run the JavaAPIExample using the defaults.
  9. Copy the contents of BEA_HOME\ales30-ssm\websphere-ssm\instance\<InstanceName>\config\websphere-server.xml into BEA_HOME/websphere-ssm/AppServer/profiles/AppSrv01/config/cells/terminatorNode01Cell/nodes/terminatorNode01/servers/server1/server.xml.
  10. Note: Make sure the xml blocks are inserted into the correct section.

  11. Start the WebSphere Server by running the following script:
  12. BEA_HOME/websphere-ssm/AppServer/profiles/AppSrv01/bin/startServer.bat|sh.
  13. Set JAVA_HOME in BEA_HOME\ales30-ssm\websphere-ssm\examples\PolicyQueryWebApp\set-env.bat|sh.
  14. Run BEA_HOME\ales30-ssm\websphere-ssm\examples\PolicyQueryWebApp\set-env.bat|sh.
  15. Run ant all to build the example.
  16. Log in to the WebSphere Server console and deploy the /dist/PolicyQueryApp.war.
  17. Open a new browser window and go to the deployed PolicyQueryApp application. For example:
  18. http://<myhost>:9080/PolicyQueryApp/index.jsp

  19. When you accept all the defaults and click on Submit, you should get the following on the access.jsp page:
  20.         Your Inputs
    user: system
    privilege: buy
    resource: store/book
    attributes: canbuy=yes;attrname=value
    Evaluation Results
    Allowed.
    Response Attributes
    No response attribute is returned!

  Back to Top       Previous  Next