|
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.
| 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. |
Define a SCM in the ALES Database
BEA_HOME\ales30-ssm\websphere-ssm\adm\instancewizard.cmd.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.
INSTANCE_HOME/bin/set-env.bat (or set-env.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.jarJavaAPIExample in the BEA_HOME/ales30-ssm/websphere-ssm/examples directory.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.Note: Make sure the xml blocks are inserted into the correct section.
BEA_HOME/websphere-ssm/AppServer/profiles/AppSrv01/bin/startServer.bat|sh.
BEA_HOME\ales30-ssm\websphere-ssm\examples\PolicyQueryWebApp\set-env.bat|sh.BEA_HOME\ales30-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!
|