This page explains how to configure the full distribution for an IBM WebSphere application server.

LDAP

In order to set up LDAP for the IBM WebSphere distribution, you have to perform the following steps:

Add the LDAP Library

Make sure the camunda-identity-ldap-$PLATFORM_VERSION.jar is present in the shared library ‘Camunda’ folder.

Adjust the Process Engine Configuration

Edit the file bpm-platform.xml located inside the Camunda BPM enterprise archive at camunda-ibm-websphere-ear-$VERSION.ear/camunda-ibm-websphere-service.jar/META-INF/ and add the LDAP Identity Provider Plugin and the Administrator Authorization Plugin.

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <bpm-platform xmlns="http://www.camunda.org/schema/1.0/BpmPlatform"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://www.camunda.org/schema/1.0/BpmPlatform http://www.camunda.org/schema/1.0/BpmPlatform ">
  5. ...
  6. <process-engine name="default"> ...
  7. <properties>...</properties>
  8. <plugins>
  9. <plugin>
  10. <class>org.camunda.bpm.identity.impl.ldap.plugin.LdapIdentityProviderPlugin</class>
  11. <properties>
  12. <property name="serverUrl">ldap://localhost:4334/</property>
  13. <property name="managerDn">uid=jonny,ou=office-berlin,o=camunda,c=org</property>
  14. <property name="managerPassword">s3cr3t</property>
  15. <property name="baseDn">o=camunda,c=org</property>
  16. <property name="userSearchBase"></property>
  17. <property name="userSearchFilter">(objectclass=person)</property>
  18. <property name="userIdAttribute">uid</property>
  19. <property name="userFirstnameAttribute">cn</property>
  20. <property name="userLastnameAttribute">sn</property>
  21. <property name="userEmailAttribute">mail</property>
  22. <property name="userPasswordAttribute">userpassword</property>
  23. <property name="groupSearchBase"></property>
  24. <property name="groupSearchFilter">(objectclass=groupOfNames)</property>
  25. <property name="groupIdAttribute">ou</property>
  26. <property name="groupNameAttribute">cn</property>
  27. <property name="groupMemberAttribute">member</property>
  28. </properties>
  29. </plugin>
  30. <plugin>
  31. <class>org.camunda.bpm.engine.impl.plugin.AdministratorAuthorizationPlugin</class>
  32. <properties>
  33. <property name="administratorUserName">admin</property>
  34. </properties>
  35. </plugin>
  36. </plugins>
  37. </process-engine>
  38. </bpm-platform>

The administratorUserName property should contain the user id of the LDAP user you want to grant administrator authorizations to. You can then use this user to log into the webapplication and grant authorizations to additional users.

See our user guide for complete documentation on the LDAP Identity Provider Plugin and the Administrator Authorization Plugin.

HAL Resource Caching

If you use LDAP as Indentity Provider, you should consider activating caching ofUsers and Groups in the Camunda webapplication. In order to activate this, add the followingconfiguration to the web.xml file of Camunda webapplication(camunda-webapp-was-$PLATFORM_VERSION.war/WEB-INF/web.xml):

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
  5. <!-- ... -->
  6. <listener>
  7. <listener-class>org.camunda.bpm.engine.rest.hal.cache.HalRelationCacheBootstrap</listener-class>
  8. </listener>
  9. <context-param>
  10. <param-name>org.camunda.bpm.engine.rest.hal.cache.config</param-name>
  11. <param-value>
  12. {
  13. "cacheImplementation": "org.camunda.bpm.engine.rest.hal.cache.DefaultHalResourceCache",
  14. "caches": {
  15. "org.camunda.bpm.engine.rest.hal.user.HalUser": {
  16. "capacity": 100,
  17. "secondsToLive": 900
  18. },
  19. "org.camunda.bpm.engine.rest.hal.group.HalGroup": {
  20. "capacity": 100,
  21. "secondsToLive": 900
  22. }
  23. }
  24. }
  25. </param-value>
  26. </context-param>
  27. <!-- ... -->
  28. </web-app>

原文: https://docs.camunda.org/manual/7.9/installation/full/was/configuration/