This section describes how to configure and set up the WebSphere SSM. It also describes a simple application that demonstrates how to retrieve basic security services and use them for authentication and authorization.
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. |
BEA_HOME\ales32-ssm\websphere-ssm\adm\instancewizard.cmd
.In Windows, this can be done by opening the Start menu and selecting Oracle Entitlements Server > Security Service Module > Websphere Security Service Module > Create New Instance.
set-env.bat
|sh
in an editor and appending the JDBC driver to the CLASSPATH environment variable. set CLASSPATH=%CLASSPATH%;%INSTALL_HOME%\lib\antlr.jar
set CLASSPATH=%CLASSPATH%;%INSTALL_HOME%\lib\jaxrpc.jar
set CLASSPATH=%CLASSPATH%;f:\pbclient51.jar
JavaAPIExample
in the BEA_HOME/ales32-ssm/websphere-ssm/examples
directory.BEA_HOME\ales32-ssm\websphere-ssm\<
instance
>\config\websphere-server.xml
into BEA_HOME/websphere-ssm/AppServer/profiles/AppSrv01/config/cells/terminatorNode01Cell/nodes/terminatorNode01/servers/server1/server.xml.
Note: Make sure the xml blocks are inserted in the correct section.
BEA_HOME
/websphere-ssm/AppServer/profiles/AppSrv01/bin/startServer.bat|sh
.
BEA_HOME\ales32-ssm\websphere-ssm\examples\PolicyQueryWebApp\set-env.bat|sh
.BEA_HOME\ales32-ssm\websphere-ssm\examples\PolicyQueryWebApp\set-env.bat|sh
.ant
all
to build the example./dist/PolicyQueryApp.war
.
http://<myhost>:9080/PolicyQueryApp/index.jsp
access.jsp
page:Your Inputs
user: system
privilege: buy
resource: store/book
attributes: canbuy=yes;attrname=value
Evaluation Results
Allowed.
Response Attributes
No response attribute is returned!