Pages

Showing posts with label Federation. Show all posts
Showing posts with label Federation. Show all posts

Wednesday, November 25, 2015

CA SiteMinder Admins Guide to ForgeRock OpenAM: Part 1- Infrastructure Architecture 

Recently I joined ForgeRock as a senior consultant. After almost 15 years in the ops and integration world, working with SiteMinder, a bunch of peers have been asking me how SiteMinder compares to OpenAM and how they differ. So, now as a fully biased ForgeRock employee, I am documenting the process of translating that SiteMinder suite knowledge into OpenAM.

In a series of blogs I will describe OpenAM from the viewpoint of a SiteMinder Admin, mainly myself, learning the similarities and differences as one with such background wishes to quickly come up to speed with ForgeRock’s OpenAM platform. The scope will not be to compare point by point every single feature of SiteMinder and OpenAM, but will be an introduction to OpenAM by deployment and integration of a sample app. 

The Basics - Infrastructure Overview and differences

SiteMinder: SiteMinder requires a JDK for installation and an ldap instance to configure as the policy store. In addition, a separate install of an app server (like tomcat) and deployment of the SiteMinder UI is needed. It is then configured against the SiteMinder Policy server in order to manage the environment.


OpenAM: OpenAM requires a Java Application server, like tomcat, to deploy the openAM.war file. In addition, an ldap instance is used as a configuration policy store. 





One key difference of the OpenAM platform will be the amount of built-in services that are available. Not, integrated, but core service capabilities of the OpenAM product. For example, if you require federation services, it is an additional installation of a servlet or app server, and a session DB or CA Directory for SiteMinder to offer the capability.


If you also require Advanced Authentication and a Risk engine with OTP features, SiteMinder requires the addition of the CA Strong Authentication (Arcot) components. This requires 3 installations, StrongAuth, RiskAuth, and a customized adapter deployed on a java app server. An Oracle or MS SQL DB is also required for user registration and profile information. 


Finally, if you need to expose these services via a REST interface, none of the components offer this natively. CA Strong Auth exposes its services via WSDLs. In order to abstract all these services through a REST interface, you can deploy a CA Layer7 soft appliance. It is an API gateway that allows you to expose SiteMinder authentication via an embedded agent on the gateway. You can also translate the Strong Auth WSDLs as REST endpoints.  Layer7 can be deployed as a hardware or soft appliance as well as built on your own platform. It is made up of a web app deployed on tomcat with a MYSQL embedded DB.


This diagram illustrates the problem with acquisition architecture. Your infrastructure sprawl get big quickly. With no redundancy, you are already looking at a sizable footprint of VMs, DBs, and App Servers; not to mention the firewall rules and VIPs you will need as part of the inter-component communications. I deployed this in my previous position. You quickly get into scalability and APM issues.

By comparison, OpenAM is a single deployed war file that contains all of these services and all accessible via RESTful interface. 


Try it for yourself. Download the software at https://forgerock.org/downloads/ and discover the differences and simplicity of the ForgeRock platform.

Thursday, October 4, 2012

Deploying SiteMinder 12.5 Federation Services on WebSphere 7

One of the new features of SiteMinder 12.5 is that it has finally integrated most of the federation management capabilities into the AdminUI. There are various options that can be used for deploying the federation services. In this example, I will go over how to deploy the federation service on a WebSphere 7 clustered environment. Compared to earlier versions of the product, SiteMinder 12.5 Federation services was extremely easy to do this time around.

Prerequisites
SiteMinder 12.5 Policy Server
WebSphere 7 clustered environment
IHS configured with plugin to the WebSphere Application Servers
SiteMinder 12.5 WebAgent on the IHS configured with Policy Server


Installing the Option Pack
On the WebSphere Application server, install the SiteMinder Web Agent Option Pack. For example on Linux with 64 bit WebSphere, it is ca-wa-opack-12.5-linux-x86-64.bin.

./ca-wa-opack-12.5-linux-x86-64.bin -i console
Hit ENTER 55 times to make it through the license agreement and Y once to accept it.

The next step is to select the correct java. Make sure you use the WebSphere java and not a OS install.
The location of the WebSphere jre is:
.../WebSphere/Common/java/jre/bin/java

Next, enter the path of an existing SiteMinder Web Agent if you have a local IHS instance on the Application Server. Even if you do happen to have a local IHS with the SiteMinder Agent installed, we have always installed the option pack in its own location. This was a method recommended to use by CA Pro Services as a clean way to keep the web agent and option pack installs separate and independent of each other. This also avoids any issues with a 32 bit web agent for IHS and 64 bit option pack for WebSphere.
So, enter a new path for the option pack and proceed with install.
../CA/webagent_optionpack

Source the Web Agent Option Pack and WebSphere App Server variables
Source the web agent option pack environment variables
. ./CA/webagent_optionpack/ca-wa-opack-env.sh
Source the WebSphere paths. We, for example, keep this in a .profile_WAS we maintain. And furthermore, WebSphere needs to have the option pack variables for anytime WebSphere is restarted.As such, we add the option pack variables to our WebSphere profile.


Register the Web Agent OptionPack
If you have a local IHS on the WebSphere server, with a webagent configured, then you can skip this step because you will already have an existing SmHost.conf and WebAgent.conf file. If not, you will need to register the web agent option pack and create a WebAgent.conf file. Start by creating an ACO for the webagent option pack.

.../CA/webagent_optionpack/bin/smreghost -i"policyserver" -u"siteminder" -p"password" -hn"trustedHostName" -hc"HCO"

Once the SmHost.conf is created, move the file to:
.../CA/webagent_optionpack/config/

Also, within the config directory, create the WebAgent.conf file. The basic parameters required are:
HostConfigFile="../CA/webagent_optionpack/config/SmHost.conf"
AgentConfigObject=""
EnableWebAgent="YES"


Configuring the Federation Service
Navigate to ../CA/webagent_optionpack/affwebservices/WEB-INF/classes
modify the affwebservices.properties file.
AgentConfigLocation=

Next modify the LoggerConfig.properties file.
Update the logging options to enable basic logging and or trace level logging. Update the path of the log location.

Copy Web Agent Option Pack libraries to WebSphere
Copy the following files to your WebSphere Application server profile:
from ../CA/webagent_optionpack/bin/
to ../WebSphere/Common/profiles//bin/
libsmcommonutil.so
libsmerrlog.so
libsmfedclientcomponent.so
libsmjavaagentapi.so

Create the Federation Services WAR file
Navigate to ../CA/webagent_optionpack/affwebservices
run the jar command: (if you don't have the WebSphere PATH sourced, jar command will fail.)
"jar -cvf affwebservices.war ."

Deploy the affwebservices.war
Login to the WebSphere Deployment Manager

Deploy the Enterprise Application and navigate to the location of the war file.

For Deployment options, select Detailed

 
 
On Application Security Warnings, click Continue
1 Select installation option, choose defaults
2 Map Modules to servers, make sure you select the appropriate cluster and your web server as well.
Steps 3,4,5,6,7 can be left default
8 Map context roots for Web Modules, change the context root to /affwebservices/ 

 

Finish Deployment and Save

Post Deploy Configurations
In WebSphere Console, navigate to Applications, Enterprise Applications and select affwebservices_war.

Select Class Loader and update the WAR class loader policy to:
Single class loader for application.

By default, Class loader order should already be correct, but if not, set to:
Classes loaded with parent class loader first

Save changes.
 
 Update the Global Plugin and make sure it is pushed out to the local and or remote IHS instance.

Bounce WebSphere
Make sure the option pack is being sourced by the same profile WebSphere uses. Restart your WebSphere environment and monitor the SystemOut.log for any errors.

Test the deployment by going to the federation web service which is located at:
http://fqdn_host:port/affwebservices/assertionretriever

You should get a message back:
Assertion Retrieval Service has been successfully initialized.