From 670d0e4c8a3c7f835596a3b948f377c0d0156486 Mon Sep 17 00:00:00 2001 From: cdeneux Date: Fri, 28 Jul 2017 12:49:14 +0200 Subject: [PATCH] [IDM] Fix a regression about LDAP integration introduced with commit 148f4f2 (Perhaps the LDAP integration is no more working) --- .../org/flowable/ldap/LDAPConfigurator.java | 6 +- .../src/test/resources/flowable-context.xml | 63 ++++++++++--------- 2 files changed, 36 insertions(+), 33 deletions(-) diff --git a/modules/flowable-ldap-configurator/src/main/java/org/flowable/ldap/LDAPConfigurator.java b/modules/flowable-ldap-configurator/src/main/java/org/flowable/ldap/LDAPConfigurator.java index 2f308f2ec1..556b89ec95 100644 --- a/modules/flowable-ldap-configurator/src/main/java/org/flowable/ldap/LDAPConfigurator.java +++ b/modules/flowable-ldap-configurator/src/main/java/org/flowable/ldap/LDAPConfigurator.java @@ -12,9 +12,9 @@ */ package org.flowable.ldap; -import org.flowable.engine.cfg.AbstractProcessEngineConfigurator; import org.flowable.engine.cfg.ProcessEngineConfigurator; import org.flowable.engine.common.api.FlowableException; +import org.flowable.engine.impl.cfg.IdmEngineConfigurator; import org.flowable.engine.impl.cfg.ProcessEngineConfigurationImpl; import org.flowable.engine.impl.util.EngineServiceUtil; @@ -28,7 +28,7 @@ import org.flowable.engine.impl.util.EngineServiceUtil; * * @author Joram Barrez */ -public class LDAPConfigurator extends AbstractProcessEngineConfigurator { +public class LDAPConfigurator extends IdmEngineConfigurator { protected LDAPConfiguration ldapConfiguration; @@ -40,6 +40,8 @@ public class LDAPConfigurator extends AbstractProcessEngineConfigurator { @Override public void configure(ProcessEngineConfigurationImpl processEngineConfiguration) { + super.configure(processEngineConfiguration); + if (ldapConfiguration == null) { throw new FlowableException("ldapConfiguration is not set"); } diff --git a/modules/flowable-ldap-configurator/src/test/resources/flowable-context.xml b/modules/flowable-ldap-configurator/src/test/resources/flowable-context.xml index 7915a753b9..f270d3f2ff 100644 --- a/modules/flowable-ldap-configurator/src/test/resources/flowable-context.xml +++ b/modules/flowable-ldap-configurator/src/test/resources/flowable-context.xml @@ -28,37 +28,38 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- GitLab