AnsweredAssumed Answered

Activiti 6 LDAP Configuration

Question asked by aggiepilot04 on Sep 11, 2015
Latest reply on Oct 21, 2016 by rnd@smartteamglb.com
Anyone have any examples of how to configure LDAP auth on the activiti-app deployment for Activiti 6?  This was our previous implementation in Activiti 5's activiti-strandalone-context.xml:


  <bean id="ldapProperties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
      <property name="location" value="file:///path-to-ldap.properties" />
      <property name="ignoreUnresolvablePlaceholders" value="true" />
  </bean>
  <bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
   …
   <property name="configurators">
      <list>
         <bean class="org.activiti.ldap.LDAPConfigurator">
            <property name="server" value="${ldap.server}" />
            <property name="port" value="${ldap.port}" />
            <property name="user" value="${ldap.user}" />
            <property name="password" value="${ldap.password}" />

            <property name="baseDn" value="${ldap.baseDn}" />
            <property name="queryUserByUserId" value="${ldap.queryUserByUserId}" />
            <property name="queryUserByFullNameLike" value="${ldap.queryUserByFullNameLike}" />
            <property name="queryGroupsForUser" value="${ldap.queryGroupsForUser}" />

            <property name="userIdAttribute" value="${ldap.userIdAttribute}" />
            <property name="userFirstNameAttribute" value="${ldap.userFirstNameAttribute}" />
            <property name="userLastNameAttribute" value="${ldap.userLastNameAttribute}" />

            <property name="groupIdAttribute" value="${ldap.groupIdAttribute}" />
            <property name="groupNameAttribute" value="${ldap.groupNameAttribute}" />
            <property name="customConnectionParameters">
               <map>
                  <entry key="java.naming.referral" value="follow" />
               </map>
            </property>
         </bean>
      </list>
   </property>


We need to point to an external config file (as shown above) so that the activiti app deployment doesn't change between environments.  Thanks in advance.

Outcomes