Pages

Saturday, February 13, 2010

CA Identity Manager 12.5 and SiteMinder 12 sp2 integration: A quick guide.

This is a quick guide to doing a very basic integration of SiteMinder and Identity Manager.  A PDF of the guide with screenshots is available here. This is a first draft, and as the solution is implemented in our actual infrastructure I will update the documentation. In the meantime, for searching purposes, here is the text of the file:


Quick Guide to getting CA SiteMinder 12 integrated with Identity Manager 12.5
Draft 1
Server pre-requisites as used by this exercise:
3 Windows2003 Servers
Server 1: Sun DSEE LDAP and MS SQL2005
Server 2: CA Identity Manager Server
Server 3: CA SiteMinder Policy Manager Server
Software pre-requisites as used by this POC environment: Refer to CA’s support matrix for component options and compatabilities. 
SiteMinder: https://support.ca.com/irj/portal/anonymous/phpdocs?filePath=0/5262/5262_docindex.html#PSM
Identity Manager: https://support.ca.com/irj/portal/anonymous/phpdocs?filePath=0/5655/5655_docindex.html#PSM
Server 1: dsee7
Sun DSEE v7 LDAP
LDAP instance for SiteMinder Policy Store
LDAP instance for User Repository
SQL DB Instance for SiteMinder UI object store
SMOBJSTORE port 1433
SQL DB Instance for Identity Manager object store
IDMOBJSTORE port 1433
Server 2: idmr125
Java 1_5_0_16 JDK
Jboss 4.2.3GA
http://sourceforge.net/projects/jboss/files/JBoss/JBoss-4.2.3.GA/
IIS 6.0
smwa-12.0-sp2-win32
jboss proxy plugin for IIS ( isapi_redirect-1.2.28.dll )
CA Identity Manager R12.5
Server 3: smr12sp2ps
SiteMinder Policy Server R12sp2
For a quick guide on how to setup a R12 environment, refer to Coreblox’s excellent guide. In my case, I used a Sun LDAP instead of AD for Policy Store. 
Foundational work
Ensure you have a working LDAP user repository. 
example: suffix: dc=b2c,dc=com port: 1389

Required users: 
superadmin: default admin user for Identity Management environment
selfreguser: entry used to manage self-service tasks.
Ensure you have a working SiteMinder Environment. 
Install and configure an agent for the IIS web server instance running on the Identity Manager Server. Refer to the SiteMinder documentation “Web Agent Installation Guide: Install a Web Agent on a Windows System and Configure an IIS Web Agent”.
There is no need to create a realm or user directory at this time for the Identity Manager server. What is required is a basic setup that includes a trusted host. 
Setting up Jboss and the IIS JBoss connector.
Install Java 1.5.0.x jdk on the identity manager server. 
example: jdk-1_5_0_16-windows-i586-p.exe
After installation, set environmental variable:
JAVA_HOME = “C:\Program Files\Java\jdk1.5.0_16”
Unzip Jboss package jboss-4.2.3.GA.zip at C:\
update the run.conf located at “C:\jboss-4.2.3.GA\bin\
Change the entry “#JAVA_HOME=” to the location of your java install.
example:
JAVA_HOME=”C:\Program Files\Java\jdk1.5.0_16”
Open a command line and start up jboss:
C:\jboss-4.2.3.GA\bin\run.bat -b 0.0.0.0
Once jboss has started, verify by going to the jboss URL at:
http://:8080
Default port is 8080

IIS JBoss connector: Chicken-Egg Problem.
A few steps that must be delayed:
Extend SiteMinder Policy Schema with Identity Manager extensions.
Properly configure the IIS Jboss ISAPI connector
In order to have the necessary files to configure the Policy Store and IIS-Jboss connector, you must unfortunately first install the Identity Manager software. After installing, you will have access to the necessary files required. 
Installing the Identity Manager software
Shutdown jboss if it is running. 
Start ca-im-r12.5-win32.exe
Choose Components:
Only select Identity Manager Server, Connect to Existing SiteMinder Policy Server, and Identity Manager Administrative Tools. 

For this exercise, we are only using web-edition to manage external user ldaps, and not setting up the provisioning components. 
Click Next and continue. Select jboss 4.2.3 for Application Server Information. Make sure you enter the correct jboss location and a fully-qualified app server URL.

Choose the JDK you previously installed. 

Select your Database Type. In this exercise, SQL 2005 was used. 

Enter your SQL connection information.

Login information refers to a username and password for all components that are embedded within the Identity Manager environment. This Username will also result in the agent name created in the Policy Server. 

Next, enter Policy Server connection information.

Validate all settings at Pre-Install Summary and when ready click Install.
After installation, validate by starting up jboss. This time, using the supplied startup script. 
C:\jboss-4.2.3.GA\bin\run_idm.bat -b 0.0.0.0
Validate Identity Manager is running by going to the URL:
http://:8080/idmmanage

Installing and configuring the IIS-JBoss Connector
Installing the ISAPI connector
Now that the Identity Manager has been installed, additional tool components are now available to finish the IIS-JBoss connector as well as the SiteMinder Policy Store schema extensions. 
Download the isapi_redirect-.dll. Create a directory “C:\ISAPI” and place .dll there. Next you need to copy some configuration property files to use with the isapi module. Go to “C:\CA\Identity Manager\IAM Suite\Identity Manager\tools\samples\ConnectorConfiguration\windows\IIS_JBoss\” and copy the 2 property file to “C:\ISAPI”.
Edit the jakarta.reg file. 
Make sure the extention_uri contains the correct isapi_redirect.dll module name. It should be equal to what you downloaded. 
The “log_file”, “worker_file”, and “worker_mount_file” should all point to the location where you copied the property files, in our example at “C:\ISAPI”.
Double-click the jakarta.reg file to add the settings to the registry.
Configuring IIS
Start the Internet Information Services (IIS) Manager. Right-click the Default Web Site and select New>Virtual Directory. The Virtual Directory Creation Wizard opens.
Click Next to begin using the Virtual Directory Creation Wizard. In the Alias field, enter "jakarta". Click Next. In the Directory field, enter the full path to the directory where the configuration files are located. For example: C:\ISAPI.
Click Next to display the Access Permissions screen. Select the following permissions, and click Next: Read, Run scripts (optional), Execute. Click Finish.

Next add the Jakarta filter to the ISAPI filters. Right-click Default Web Site and select Properties. Select the ISAPI Filters tab. Click Add. The Filter Properties dialog box opens. In the Filter Name field, enter "jakarta". In the Executable field, enter the full directory path and filename of the isapi_redirector.dll file that you downloaded. Click OK.

Next, allow the jakarta extension: Right-click "Web Service Extensions" and select "Add a new Web Service Extension..." In the Extension Name field, enter "jakarta". Click Add. The Add File dialog box opens. Enter the full directory path and file of the isapi_redirect.dll file that you downloaded. Click OK. Check Set Extension Status to Allowed. Click OK.
Restart the IIS Admin Service, including the World Wide Web Publishing Service.

Note: The AJP connector uses port 8009 by default. To change the port number,
modify it in the following location: workers.properties
Verify IIS-Jboss connector is working
Validate Identity Manager is accessible via the proxy by going to the URL:
http:///idmmanage  (without the need of port 8080)

Finishing up SiteMinder Policy Server configuration
Extend Policy Store LDAP schema
The schema file is located at “C:\CA\Identity Manager\IAM Suite\Identity Manager\tools\policystore-schemas\SunJavaSystemDirectoryServer\sundirectory_im8.ldif”
This would be the case if you are using Sun LDAP. Additional schema files are available for other ldap and DB instances commonly used as policy store. 

Validate your policy store schema has been extended. 
installing the Extensions for SiteMinder Policy Server
Re-launch the Identity Manager software. Start ca-im-r12.5-win32.exe
In the “Choose Components” window, only select “Extensions for SiteMinder”.

Continue the install and restart the policy server when completed. 
Configuring a Directory and Environment within Identity Manager
Having installed and configured all the components of Identity Manager and SiteMinder, your next step is to configure a connected directory and environment which in turn automatically creates a user directory and domain on your SiteMinder policy Server. 
To configure a directory, you can upload a pre-configured directory.xml file that defines the Directory structure and attributes. You configure your directory using the Wizard which walks you through the directory structure and attributes. Either way, you need to start with a base directory.xml file. These are supplied within the ..\tools\directoryTemplates location. There are base directory.xml files for many ldap and DB vendors. In addition, you need to choose your directory.xml based on whether your ldap structure is flat or contains hierarchy. For this exercise, the ldap structure created is flat. All users are within the ou=people organizational unit. 
There are 3 key areas within the directory.xml that are most relevant. The first section defines user objects and attributes. The second defines groups and the third defines organizations. If you are NOT using organizations, it is important to remove the organization section and any references to configuring organizations withi the directory.xml. 
Refer to the Identity Manager documentation to get an understanding of how Identity Manager uses organizations to manage a hierarchical structure. Its important to have a clear understanding on when you would want to use organizations. In this flat ldap being used for this example, organizations are not required. 
Schema extensions to support IdM functions
While you can use any existing attributes as part of the inetorgperson, I have created an auxiliary class object that contains some custom attributes to be used by Identity Manager and our fictional web application. 
The following attributes were added to my ldap instance:
objectclass=b2cperson with Parent object class of inetorgperson
b2cPerson contains these additional attributes used by Identity Manager:
sm-disabledFlag: The user's status 
sm-passwordData: The user's password information for SiteMinder password policies
sm-questionAnswer: The user's self service security questions and answers 
sm-adminRole: The list of admin roles the user is a member or administrator of 
sm-certStatus: The user's certification status
sm-lastCertDate: The date the user's roles were last certified 

Configuring a User Directory
Go to the URL http:///idmmanage

Click on Directories
If you have a pre-configured directory.xml, you can just import those definitions, or you can start with a template and use the wizard to walk you through all the attribute mappings. 
For this exercise, I will select the wizard and select the modified directory.xml file I updated removing any references to organizations. 

The first screen will have  you enter the basic LDAP connection information. 

Next screen will show you all configurable options. In this modified directory.xml, there is only user object and group object. 

This next section, Select User Attributes, will map out the objectclass and attributes to be used by Identity Manager.
If you are using an auxiliary objectclass, change the structural class to reference your custom one. This will expose all the custom attributes. 
Verify your Container properly defines the location of your users in the ldap structure and finally select all the attributes you want the Identity Manager to be aware of. 
Click next to continue.

In the next section, you will map the attributes to the Identity Managers attribute names. 
Click next when done with the mapping. 
Next section allows you to add descriptions to any attributes as displayed by the Identity Manager system. Click next after making any changes. 
Finally for users, there is the User Attribute Details where you can add any conditions around the availability and sue of the attribute within the IdM system. You can set attributes to be requires or set minimum values for a given attribute. 

Click Next and you will be returned to the Configure Managed Objects screen. You will repeat the same steps, this time for configuring the Group Objects. 
As you go through the screens, make any changes as necessary. For the most part, these can stay as they are. For this exercise, no additional changes have to be made. 

Continue clicking Next until you return to the Configure Managed Objects.  The Show summary and deploy directory option should be selected by default. Click Save to make a new copy of your modified directory.xml. CLick Next to review the configuration and Finish to implement the Directory. 

After a successful creation of the directory, you should have a similar message. 

Login to your SiteMinder AdminUI and verify that the new Directory instance you just created on the Identity Manager server has now created a Directory instance on the SiteMinder policy server. 

Creating a Managed Environment
You will need to know the following info before you create your new managed environment:
The LDAP entry for  your over-all admin user
uid=superadmin,ou=people,dc=b2c,dc=com
The LDAP entry for a self-service system user
uid=selfreguser,ou=people,dc=b2c,dc=com
the URL alias you will use for this managed environment ‘b2c’
the URL alias you will use for the self-service public section of this managed environment ‘b2cpub’
Go to the URL http:///idmmanage. This time click on Environments. Next click on New.
On the first screen, enter your managed environment’s name and the alias which will be added to the jboss URL. Click Next
On the next screen, select the Directory server you will manage. In this exercise, there should only be one entry, the b2c LDAP. Click next. 
The next screen will give you the option to select a provisioning directory. Since this exercise is not covering provisioning, no options will appear. Select next to continue. 

The next screen will configure the public URL and self-service components. Enter the URL which will be used for public access and enter the self-service ldap entry. 

Click Next.

In the next screen you can select which roles you want imported into the managed environment. For this exercise, only select Create default roles (recommended).

Click Next.

There is optional Role Definitions section. There is no need to select any additional role definitions, so just click on Next.
Next section has you select your system admin. Enter the name of the ldap entry that will be the superadmin and click on Add. 

Click Next.

The next screen has to do with SiteMinder integration. You can select which Agent will be used to protect the Identity Manager b2c managed environment. As you will see, Identity Manager automatically creates its own agent. Select this agent for use. 

Click Next.
The final screen will contain a summary of the new environment about to be created. 

Click Finish after reviewing your settings. 

You should have no errors when the environment is built. 
Click on Continue

You will be returned to the Environments screen. The final step is to update the IIS’s webagent.conf file, restart IIS, startup the b2c environment and validate a corresponding SiteMinder domain and realm was created. 

Update the IIS’s webagent.conf to have the proper agent configure object which was created by the environment build. Restart your IIS server after updating. 
Next , to start the environment, click on b2c. Scroll to the bottom and look for the Status setting. It will be set to Stopped. Click on Start. 

Make note of the SiteMinder Policy DOmain name. This was created as part of the environment build. 
Log into your SiteMinder AdminUI and go to view your Domains. You should see the b2c domain created. 

View the b2cDomain and you will notice that the user directory will be configured as well as the default realms required by Identity Manager. 
Final Step - Validate you can log into the b2c managed environment as the superuser. 
Go to the URL http:///idm/b2c
A pop-up should occur requesting login credentials. Login as superAdmin

After a successful login, you should see all the following tabs displayed. 

Validating functionality - Create an user. 
As Superadmin, click on the User tab -> Create User. 

When new screen appears, select Create a new user and click on OK. 
Enter required information to create the user. Click Submit when done. 

When the task completes, you will get a Confirmation message. 

Validate the user has been completed by checking your ldap server to ensure the entry was created. 

Similarly, you can create a new group and validate it has been created under ou=groups. 
This concludes the basic information to have a functional integration with CA Identity Manager 12.5 and SiteMinder 12.1. 

Tuesday, February 2, 2010

Common Criteria Evaluation of SiteMinder R12 documents

These two links offer some very interesting and detailed documents on Common Criteria's evaluation of SiteMinder R12sp1-cr3. In particular the "Security Target" document gives a wealth on information on the underlying workings of SiteMinder.

Find these documents and many more in  their Access Control Device and System repository. As well as the SiteMinder documentation, it contains evaluations of other Identity and Access Management products.

Common Criteria Certified Product List

Saturday, January 30, 2010

DSCC Stability and Performance issues with DSEE 6.x and 7

We have too many LDAP instances. That's a different story I won't get into here. However, we use the DSCC as one method to manager our 172 6.3.x and 7 ldap instances. We run our 2 DSCC servers on Solaris 10 zones. Our first DSCC is currently using v6.3 and configured with the SMCWebServer. The 2nd is a recently implemented DSCC v7 running on the Java WebServer v7. The registry is replicated between the two DSCC's servers.

Once we got to around 100 ldap instances we started having slow logins, bad performance, and stability issues on the DSCC. Performance was so bad on the v6 DSCC that we would have to restart the smcwebserver before each login otherwise the logins would fail. Our implementation of the 2nd v7 DSCC on the Sun Web Server was based on a hope that there would be performance and stability improvements. A second major reason for moving to the Java Web Server platform and v7 of the DSCC was to move to a more familiar platform and away from requiring sudo access to run the registry or to restart the smcwebserver. Nothing our Unix admins hate more than having to give us sudo access.

We encountered the same performance and stability problems on the v7 DSCC. However, we had a more familiar platform (which we had control over vs the SMCWebServer) to troubleshoot our problems on and indeed found an easy fix.

It seems that when you login for the first time after a startup to the DSCC it will try to connect to every LDAP instance to update its cache. For us, the login normally takes up to 20 seconds.  LDAP servers that are behind a firewall seem to take longer to respond and appear in the console as "stopped". After a few refreshes their status changes to "Started".  Once in the console and working on tasks, other behavior that would appear is that all Server Groups would disappear.

Typical info and warning messages we see during the login time are:


 warning (18830): NmcAndAmcComputer[ou=Netegrity,dc=company,dc=com,ldapserver2:1389] skipped ldap://ldapserver2:1390 because it's not replicated !


 warning (18830): NmcAndAmcComputer[ou=Netegrity,dc=company,dc=com,ldapserver3:1389] failed to find ldap://ldapserver3:1390 in the topology cache !


 info (18830): for host 10.111.160.249 trying to POST /dscc7/dcc7Module/Login, service-j2ee reports: SuffixReplStateInfoComputer[dc=company,dc=com] ignored invalid RUV found in dc=company,dc=com@ldapserver:1390

The problem we did not notice on the SMWebServer but discovered via the Java Web Server logs was that the java process was running out of threads as it tried to connect all 172 ldap instances. In short, our LWP setting was too low.

Example error messages:


warning ( 2196): CORE3283: stderr: Exception in thread "DSLoader[ldapserver1:1389]" Exception in thread "DSLoader[ldapserver1:1389]" java.lang.OutOfMemoryError: unable to create new native thread


[ERROR] Uncaught application exception com.iplanet.jato.command.CommandException: Handler method "handleRefreshHrefRequest" threw an exception Root cause = [java.lang.OutOfMemoryError: unable to create new native thread]

Furthermore, by watching the webservd process via prstat, you would be able to see the point where the threads would run out and the java errors would occur.

CPU Process/NLWP
0.0% webservd/1337

Total: 36 processes, 1723 lwps

The original LWP setting was 800. It was increased 2000.

#prctl -P -t privileged -n zone.max-lwps -i zone ldapserver1
zone: 4: ldapserver1
zone.max-lwps privileged 2000 -

This setting required a reboot, but our performance problems have been resolved. Both versions of the DSCC still take about 20 seconds for a login, but are very stable and no longer require constant restarts of either webserver.

An obvious fix to someone more familiar with the SMCWebServer? One of my biggest complaints with the DSEE 6 architecture was its requirements of root access for certain components, such as the DSCC registry and the integration with the SMCWebServer. In my experience, large enterprises tend to separate middleware such as Directory Services, Web Access Management, and Identity Management from Unix Administrators and requiring root access usually results in a level of compliancy hurdles and auditing requirements that shouldn't be required. I am very pleased that with DSEE v7, the DSCC can run without issues and without any root privileges.

Integrating Cognos 8 and SiteMinder

Expand your users SiteMinder SSO experience by integrating it with some of your business vended applications. We're in processes of proposing this integration to one of our business units to enhance the end-user experience. We will update when we are done. Hopefully, it will be an easy to implement success story.

In the meantime, here is the link to step-by-step documentation from IBM on integrating Cognos 8 with SiteMinder: http://www.ibm.com/developerworks/data/library/cognos/page448.html

To get to the pdf directly, go to think link: http://download.boulder.ibm.com/ibmdl/pub/software/dw/dm/cognos/security/general/integrating_ibm_cognos8_with_ca_siteminder.pdf

Let us know your experience if you have integrated Cognos and SiteMinder before.

Sunday, November 1, 2009

Upgrading to SiteMinder R12.x?

Coreblox once again comes up with a good posting on things to consider before you upgrade to R12. Of course, before you upgrade, make sure you download the latest SiteMinder r12 software and corresponding service packs.

http://www.coreblox.com/blog/2009/10/planning-your-upgrade-to-ca-siteminder-r12/