Integrate LDAP with Activiti Explorer

cancel
Showing results for 
Search instead for 
Did you mean: 
bellila
Member II

Integrate LDAP with Activiti Explorer

Jump to solution

Hi, 

I wanna integrate Activiti-Explorer 5.22.0 with openLDAP.

 

My activiti-custom-context.xml file looks like :

<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
<property name="dataSource" ref="dataSource" />
<property name="transactionManager" ref="transactionManager" />
<property name="databaseSchemaUpdate" value="true" />
<property name="jobExecutorActivate" value="true" />
<property name="enableDatabaseEventLogging" value="true" />
<property name="customFormTypes">
<list>
<bean class="org.activiti.explorer.form.UserFormType" />
<bean class="org.activiti.explorer.form.ProcessDefinitionFormType" />
<bean class="org.activiti.explorer.form.MonthFormType" />
</list>
</property>
<property name="configurators">
<list>
<bean class="org.activiti.ldap.LDAPConfigurator">
<!-- Server connection params -->
<property name="server" value="ldap://localhost" />
<property name="port" value="389" />
<property name="securityAuthentication" value="simple" />
<property name="user" value="cn=admin,o=test,dc=test,dc=com" />
<property name="password" value="root" />
<!-- Query params -->
<!--<property name="baseDn" value="dc=test,dc=com" />-->
<property name="baseDn" value="o=test,dc=test,dc=com" />
<!--MY CHANGE END -->
<property name="queryUserByUserId"
value="(&amp;(objectClass=inetOrgPerson)(displayname={0}))" />
<property name="queryUserByFullNameLike"
value="(&amp;(objectClass=inetOrgPerson)(|({0}=*{1}*)({2}=*{3}*)))" />
<property name="queryGroupsForUser"
value="(&amp;(objectClass=groupOfUniqueNames)(uniqueMember={0}))" />
<!--<property name="userBaseDn" value="ou=users,o=test,dc=test,dc=com" />
<property name="groupBaseDn" value="ou=groups,o=test,dc=test,dc=com" />-->
<!-- Attribute config -->
<property name="userIdAttribute" value="uid" />
<property name="userFirstNameAttribute" value="cn" />
<property name="userLastNameAttribute" value="sn" />

<property name="groupIdAttribute" value="cn" />
<property name="groupNameAttribute" value="cn" />
</bean>
</list>
</property>

</bean>

But it did not work. If someone can help me to fixed the problem or has an example.
Thanks.

1 Solution

Accepted Solutions
gdharley
Intermediate

Re: Integrate LDAP with Activiti Explorer

Jump to solution

Hi Mehrez,
Those are always the most difficult to diagnose.

Can you check your LDAP logs to determine if the system is even connecting to LDAP.
Also, verify the search base and try to capture the user query that the system is making (again from the LDAP logs).

Then, repeat the query from an LDAP browser (such as Apache Directory Studio LDAP Browser) and try the query from there.

More likely than not the problem si in the configuration of your LDAP settings.

Greg

View solution in original post

6 Replies
gdharley
Intermediate

Re: Integrate LDAP with Activiti Explorer

Jump to solution

I am assuming you followed the instructions provided in this blog::

Activiti BPM Tutorial – LDAP | Thys Michels Blog 

What is the specific issue you are getting? Exception, authentication not working etc etc.

Thanks,
Greg

bellila
Member II

Re: Integrate LDAP with Activiti Explorer

Jump to solution

Hi Grey,
For the moment, I have nothing wrong in the log tomcat. But I can not connect with an LDAP user account.

gdharley
Intermediate

Re: Integrate LDAP with Activiti Explorer

Jump to solution

Hi Mehrez,
Those are always the most difficult to diagnose.

Can you check your LDAP logs to determine if the system is even connecting to LDAP.
Also, verify the search base and try to capture the user query that the system is making (again from the LDAP logs).

Then, repeat the query from an LDAP browser (such as Apache Directory Studio LDAP Browser) and try the query from there.

More likely than not the problem si in the configuration of your LDAP settings.

Greg

bellila
Member II

Re: Integrate LDAP with Activiti Explorer

Jump to solution

Hi Grey Harley,
Thanks it works

gdharley
Intermediate

Re: Integrate LDAP with Activiti Explorer

Jump to solution

In order to assist other with the same issue, can you offer up the cause of the problem?

Without the community helping each other, the community dies.

Thanks,
greg

nqthemit
Member II

Re: Integrate LDAP with Activiti Explorer

Jump to solution

Currentl I have issue same when config LDAP. Could help share to me your file config to me refer!?