r22 - 2017-09-06 - 21:41:57 - RosaNaranjoYou are here: TWiki >  Deployment Web > DeploymentInstallingUpgradingAndMigrating > ConfigureCLMOnWASWithLDAP

Configuring CLM on WebSphere Application Server with LDAP

Authors: MikeDelargy, MirkoHartwig
Build basis: CLM Versions 3.x, 4.x, 5.x, and 6.x

Configure WAS Environmental Variables

1.If WebSphere is not running, go ahead and start it at this time. _

  • Windows:
    • c:\IBM\WebSphere\AppServer\profiles\CLMAppsrv01\bin>startServer.bat server1 (Your path may be different.)

  • Linux:
    • /opt/ibm/WebSphere/Appserver/profiles/CLMAppsrv01/bin/startServer.sh server1 (Your path may be different.)



2.Login into the IBM WebSphere Admin console (this WAS installation was configured with the user / pw wasadmin / wasadmin yours will probably be different)


WAS_LoginPage.png

3.Navigate to the Server / Server Types / WebSphere Application Servers and click server1

server1.png

4.On the right hand side, select Server Infrastructure then select Java and Process Management and click Process definition

java_proc_manment.png

5. Under Additional Properties, select "Java Virtual Machine"
process_def_virtual_machin.png

6.Enter:

  • Initial Heap: 8196

  • Maximum Heap: 8196
  • Enable the Verbose GC checkbox

(These are minimum settings - Consult your local rep or Techline for more appropriate settings.)
Additionally, since you are setting your Max and Min heap here, you do not need to set them in the Generic JVM Arguments.


jvm_settings.png

Enter the following in for the Generic JVM Settings
These are generic recommendations, your numbers may vary depending on your max heap and may need to be tuned. As a guide, set your nursery [*-Xmn*] to 1/4 of your heap [*-Xmx*] for JTS, RTC, and RQM. For RNDG, set your Nursery [*-Xmn*] to 1/3 of your max heap [*-Xmx*].


-Xgcpolicy:gencon -Xcompressedrefs
-Xgc:preferredHeapBase=0x100000000
-XX:MaxDirectMemorySize=1G
-Xmn2048M 

7.Click Apply

8.Click Custom Properties on the upper right side



9.Click New

new_custom_property.png

10.Enter the following new values: (Verify your paths before setting the values. If the path to JAZZ_HOME (or any of the custom properties) has spaces, specify the short form of the path name. For example, if the path is C:\Program Files, type the path name as C:\Progra˜1)

  • Linux:
      • JAZZ_HOME Value file:///opt/IBM/JazzTeamServer/server/conf
      • SQLSERVER_JDBC_DRIVER_FILE Value /opt/IBM/JazzTeamServer/Server/SQLServer/sqljdbc4.jar (only if using SQL Server to host your application databases)
      • ORACLE_JDBC_DRIVER_FILE Value /opt/IBM/JazzTeamServer/server/ORACLE/ojdbc6.jar (only if using Oracle to host your application database files)
      • org.eclipse.emf.ecore.plugin.EcorePlugin.doNotLoadResourcesPlugin Value true
      • java.awt.headless Value true
      • log4j.configuration Value file:///opt/IBM/JazzTeamServer/server/conf/startup_log4j.properties

  • Windows:
      • JAZZ_HOME Value file:///C:/IBM/JazzTeamServer/server/conf
      • SQLSERVER_JDBC_DRIVER_FILE Value C:\IBM\JazzTeamServer\Server\SQLServer\sqljdbc4.jar (only if using SQL Server to host your application databases)
      • ORACLE_JDBC_DRIVER_FILE Value C:\IBM\JazzTeamServer\server\ORACLE\ojdbc6.jar (only if using Oracle to host your application database files)
      • java.awt.headless Value true
      • org.eclipse.emf.ecore.plugin.EcorePlugin.doNotLoadResourcesPlugin Value true
      • log4j.configuration Value file:///C:/IBM/JazzTeamServer/server/conf/startup_log4j.properties

linux_WAS_custom_properties.png

11. Click Save directly to master configuration

Configure LDAP for WAS

Go to Security \ Global Security

1.Under Java 2 security, clear the check box for Use Java 2 security to restrict application access to local resources.


1A_security.png


2.Ensure that the Enable administrative security and Enable application security check boxes are selected and click Apply

3. Click Security > Global security > Web and SIP security > General settings.

3_web_sip_secuirty.png

4.Ensure “Use available authentication data when an unprotected URI is accessed” is checked and click OK


4_general_security_behavior.png


6.Enter data similar to the following: (Your ldap admin will need to supply you with this information)

Primary administrative user name: wasadmin

Type of LDAP server: Custom

Host: jazzapacheds

Port: 10389 (default port is 389 verify your port with your ldap admin)

Base distinguished name (DN): dc=upgrade,dc=ws

Search timeout: 120 (default)


6_ldap_information.png

Note: If you are using another LDAP provider, such as Microsoft AD, start with the default settings provided by selecting Microsoft AD, in the dropdown for Type of LDAP server.

7. Click Apply
14_apply.png

8. click Advanced Lightweight Directory Access Protocol (LDAP) user registry settings


7_advanced_ldap.png


9. Enter data similar to the following: (Your ldap admin will need to supply you with this information)

User filter: (&(uid=%v)(objectclass=inetOrgPerson))

Group Filter: (&(cn=%v)(objectclass=groupOfUniqueNames))

Group member ID map: groupOfUniqueNames:uniquemember

Worth noting. The Group member ID map value is the object class name from the Group filter section in congunction with the group unique identifier.


8_advnacedldao_properties.png

10. Click OK
9_0k.png

11. Click Test Connection


10_test.png

You should receive a message the the test was successful


11_test_success.png

12. Click Save directly to the master configuration.


15_save_master.png

13. Click OK (bottom of page)
9_0k.png

14. Click set as current


13_set_as_current.png

15. Click Apply
14_apply.png


16. Click Save directly to the master configuration.


15_save_master.png

Configure WAS for JTS and CLM war files

1. Go to Applications \ New Application then click New Enterprise Application.

1_new_application.png

2. Select “Local file system” and click Browse

Drill down to /opt/IBM/JazzTeamServer/server/tomcat/webapps

(This is the path for a default installation; your path may be different)
(On Windows, your path may look similar to C:\IBM\JazzTeamServer\server\tomcat\webapps)

2b_path2war.png

These war files need to be added one at a time:

For the JTS server:

  • jts.war,
  • clmhelp.war,
  • admin.war

For the CCM (RTC) server:

  • ccm.war

For the RQM server:

  • rqm.war

For the RRC server:

  • rm.war,
  • converter.war (The converter.war can only be installed on windows or linux)

3. Start with the jts.war and click OK then Click Next (The order of installing the war files does not matter)

4 .Use the fast path installation

3fastpath.png

Click Next

5 .Accept the default installation options and click Next

4_install_options.png

6. Map Modules to servers

5_check_box.png

Click Next

7. Check the box for to map the war file to the default host and click Next

5_check_box_again.png

8. Add the context root for the war file (If you have upgraded from 2.x versions, your context roots may be different)

jts.war = /jts

6_context_root.png

Click Next

9. Review the summary page and click Finish

8_finish.png

10. When this completes, click Save directly to the master configuration.

9_save.png

11. When this is done, repeat the process for the other war files that you will be installing on this server.

(Here is a list of the war files and their associated context roots:)

* admin.war /admin

* ccm.war /ccm

* clmhelp.war /clmhelp

* converter.war /converter

* jts.war /jts

* qm.war /qm

* rm.war /rm

12. When you have completed configuring each of these war files, go to:

Applications / Application types / WebSphere enterprise applications and you should see each of your applications listed __

10_select_application.png

Enable security

(Security only needs to be enabled for the jts.war, ccm.war, and the qm.war files.)

13. To enable security for the jts.war, click on the jts.war link in the Applications / Application types / WebSphere enterprise applications section (shown above)

14. Click on Security role to user/group mapping

11_security_role.png

15. For each of the listed “Roles” we will need to map groups. Check the JazzAdmins role and click “Map Groups...”

12_map_group.png

16. Click the “Search” button (It is possible to 'filter' this list when you have a large ldap community)

13_search_group.png

17. You should see a list of available Groups (from our ldap server .. your groups will probably be different, Consult your LDAP Admin)

18. For JazzAdmn, highlight cn=JazzAdmins,ou=Groups,dc=upgrade,dc=ws and click the “right” button (your groups will match the values in your ldap server)

19. Click OK _

Repeat for each of the other groups listed

14_repeat_groups.png

20. When you have finished, click OK

21. Click Save directly to the master configuration.

22. Repeat this for the ccm.war, and the qm.war (if you are using ccm and qm) (You do NOT have to do it for the rm, admin, clmhelp, nor the converter war files.)

23. Logout of the admin console

24. We need to restart WebSphere (Command line option)

Stop the server

  • Windows:
    • c:\IBM\WebSphere\AppServer\profiles\CLMAppsrv01\bin>stopServer.bat server1

  • Linux:
    • /opt/ibm/WebSphere/Appserver/profiles/CLMAppsrv01/bin/stopServer.sh server1

25. Now start the services again

Start the server

  • Windows:
    • c:\IBM\WebSphere\AppServer\profiles\CLMAppsrv01\bin>startServer.bat server1

  • Linux:
    • /opt/ibm/WebSphere/Appserver/profiles/CLMAppsrv01/bin/startServer.sh server1
26. Log back into the admin console to verify the Applications are running __

Applications \ Application Types \ WebSphere enterprise applications

27. Go back to the IBM Admin Console and logout. _

You have completed the configuring Websphere for CLM


OPTIONAL - Setting up a Windows Service when using LDAP

The following shows how to setup the Windows service to use an LDAP user. You will need to do this when you enable Standalone LDAP user authentication with Websphere. This section is a supplement to the Websphere technote on Using WASServiceCmd to create Windows services for WebSphere Application Servers.

In this example we will use an Active Directory user and show how to fix the problem of a service that will not shutdown.

  1. Stop the service. This will fail with a 1053 error that the service did not respond to the stop attempt. You will need to kill 3 processes if you created a service already
    • WASService.exe
    • Java x2 processes to stop the service.
  2. Then run the following command from the {path to IBM}\WebSphere\AppServer\bin directory

WASService.exe -add was1Node01 -serverName server1 -profilePath {path to IBM}\WebSphere\AppServer\profiles\AppSrv01 -stopArgs "-username -password "

where username corresponds to the Primary administrative user name.
where was1Node01 is the node name appended to the service name .


Tip 1: To find the Primary administrative user name, in Websphere go to:
Security -> Global Security -> Available realm definition {It will state Standalone LDAP }
Configure -> Type of LDAP will be Microsoft Active Directory
primaryadminuserinwas.jpg

See "Primary administrative user name" - this is the user that needs to start and stop the service. This must be an active directory user.


Tip 2: To find the Node name perform the following: Run services.msc -> {search for} IBM Websphere Application Server v8.5 -> {right-click Properties} select the node information suffixed to the Service Name
wasnodeinfo.jpg
The above picture highlights text which will be needed for the WASService command above.

Related topics: Deployment web home, Managing users on WebSphere Application Server, LDAP configuration parameters

Additional contributors: PaulEllis, ChristianGlockner, RosaNaranjo

Topic attachments
I Attachment Action Size Date Who Comment
Jpgjpg primaryadminuserinwas.jpg manage 26.1 K 2016-10-06 - 10:09 PaulEllis Primary Admininistrative User screenshot
Jpgjpg wasnodeinfo.jpg manage 39.9 K 2016-10-06 - 10:10 PaulEllis Showing where to get the WAS node information
Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r22 < r21 < r20 < r19 < r18 | More topic actions
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Contributions are governed by our Terms of Use. Please read the following disclaimer.
Ideas, requests, problems regarding the Deployment wiki? Create a new task in the RTC Deployment wiki project