Configuring IBM WebSphere Process Server With OpenDS as an LDAP User RepositorySachin Krishna Telang, October 2008 IntroductionThis article provides a step-by-step procedure for configuring IBM WebSphere Process Server (WPS) 6.0.2.0 with OpenDS version 1.0.0 as an LDAP user registry. The steps mentioned in this article have been tested using IBM WebSphere Integration Developer 6.0.2.2. For configuring the LDAP registry, I used Apache Directory Studio v1.1. The information can be applied to configure any LDAP server. Note: The procedure in this article was tested on a machine running Microsoft Windows XP Professional with Service Pack 2. Here's a sample LDAP Data Interchange Format (LDIF) file named
This article covers the following topics:
Configuring OpenDSFollowing are the steps to configure OpenDS with IBM WebSphere Process Server for an LDAP user repository. 1. If OpenDS is not already installed, download OpenDS and install it. Accept the default configuration
( 2. To set up the users and groups using Apache Directory Studio for OpenDS, first download Apache Directory Studio. 3. To set up the Apache Directory Studio connection to the OpenDS LDAP server, do the following: a. In the Connection dialog box's Network Parameter tab, enter the information shown in Figure 1. You can enter any value in the Connection name field.
Figure 1: Connection Dialog Box's Network Parameter Tab b. In the Authentication tab, enter the information shown in Figure 2. Select Simple Authentication as the authentication method. For Bind DN or user, select Note: If you select Anonymous Authentication as the authentication method, then you can only view the LDAP entries, not edit them.
Figure 2: Connection Dialog Box's Authentication Tab c. Click Check Authentication to verify the connection. This should establish a connection to your LDAP server and display the Directory Information Tree (DIT) in the left panel of the LDAP browser. Setting Up Users and Groups in the LDAP RepositoryFigure 3 illustrates the simple hierarchy in the LDAP registry that is used in this article.
Figure 3: Registry Hierarchy In the supplied Some LDAP entries for User ( dn: uid=sactel+userpassword=sactel,ou=people,dc=example,dc=com objectClass: person objectClass: organizationalPerson objectClass: inetOrgPerson objectClass: top cn: Sachin sn: Telang uid: sactel userPassword: sactel Note that the LDAP entries for group dn: cn=myGrp,ou=groups,dc=example,dc=com objectClass: groupOfNames objectClass: top cn: myGrp member: uid=wps+userpassword=wps,ou=people,dc=example,dc=com member: uid=sactel+userpassword=sactel,ou=people,dc=example,dc=com Note that the groups are created with Default root entry: dn: dc=example,dc=com objectClass: organizationalUnit objectClass: dcObject objectClass: top dc: example ou: example.com This entry is not included in the provided LDIF file, because it is assumed that your base distinguished name (DN) is With Apache Directory Studio, you can either import the LDIF file or create new entries from scratch. Figure 4 shows the dialog box for creating a new entry in Apache Directory Studio. You need to select the required
Figure 4: New Entry Dialog Box Configuring IBM WebSphere Process Server With the OpenDS LDAP Server SettingsNote: If you are using IBM WebSphere Application Server (WAS), you might notice a slightly different look and feel, because I used IBM WebSphere Process Server (WPS) 6.0.2, which is based on WAS -ND 6.0.2.17. However, conceptually, everything is the same. 1. Enable Global Security as follows (refer to Figure 5): a. Click Global Security in left pane of the admin console to go to where you can configure WPS security. b. Select Enable Global Security. c. Select Lightweight Third Party Authentication (LTPA) as the active authentication mechanism. d. Select Directory Access Protocol (LDAP) for the active user registry. e. Click LDAP to configure the OpenDS LDAP server-related specific values.
Figure 5: Enabling Global Security 2. Enter the following values to configure the LDAP user registry, as shown in Figure 6:
Leave everything else as the default value.
Figure 6: Configuring LDAP User Registry 3. Click Advanced Lightweight Directory Access Protocol (LDAP) user registry settings and choose the settings that are especially important for OpenDS (refer to Figure 7): Note: The advanced LDAP user registry settings are crucial, because once WPS establishes a connection to the LDAP server, the search
for users and especially groups is controlled by these filter values. So be careful, or else you will
end up getting authentication failures, such as a. Change User Filter to Object Classes defines the data structures that stores specific data. These structures are defined as part of the standard schema files that come with
the OpenDS installation. For example, b. Change Group Filter to
Figure 7: Choosing Important Settings for OpenDS c. Test the filters in Apache Directory Studio by creating a new search and replacing This action should fetch a valid value. If it doesn't, you need to debug this string until you get a satisfactory value. Apache Directory Studio Filter Editor
provides a key for your LDAP search queries. Most likely,
Figure 8: Testing Filters by Creating a New Search
Figure 9: Filter Editor d. In the WPS console, keep the default values for User ID Map and Group ID Map. Or, if you are using different attributes for user ID and group ID, then replace the values accordingly. e. Ensure that Group Member ID Map reflects This step helps you map the security roles to the LDAP groups in J2EE applications. If you are using
4. Select Global Security -> Authentication Mechanism -> LTPA to navigate to the screen where you set the Lightweight Third Party Authentication (LTPA) password (shown in Figure 10). Since we are using LTPA authentication, we need to set the password. Any valid password that is entered is used for encrypting and decrypting LTPA keys.
Figure 10: Setting LTPA Password Testing a Java 2 Platform, Enterprise Edition (J2EE) ApplicationTesting a J2EE application is beyond the scope of this article. However, once you build your own simple web application, you need to have a security configuration with roles defined and mapped to LDAP groups in deployment descriptors. Here is sample code for IBM WebSphere Process Server
<?xml version="1.0" encoding="UTF-8"?>
<applicationbnd:ApplicationBinding xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI" xmlns:applicationbnd="applicationbnd.xmi"
xmi:id="ApplicationBinding1">
<authorizationTable xmi:id="AuthorizationTable_1>
<authorizations xmi:id="RoleAssignment1">
<role href="META-INF/application.xml#SecurityRole1"/>
<groups xmi:id="Group1" name="myGrp"/>
</authorizations>
</authorizationTable>
<application href="META-INF/application.xml#Application_ID"/>
</applicationbnd:ApplicationBinding>
About the AuthorSachin Krishna Telang has over 10 years of IT experience and has worked on various integration technologies, including IBM WebSphere MQ, WebSphere Enterprise Service Bus, and Microsoft BizTalk Server. The author is working with Tata Consultancy Services (TCS) in India as an Application Architect and is part of the SOA project initiative. AcknowledgmentsWebSphere screen shots reprinted courtesy of International Business Machines Corporation, copyright 2008 International Business Machines Corporation. Microsoft product screen shots reprinted with permission from Microsoft Corporation.
Comments (latest comments first)Discuss and comment on this resource in the BigAdmin Wiki
Unless otherwise licensed, code in all technical manuals herein (including articles, FAQs, samples) is provided under this License. |
BigAdmin SubscriptionsBigAdmin Areas
BigAdmin Sun Center
BigAdmin Topics | ||||||||||