cancel
Showing results for 
Search instead for 
Did you mean: 

ACT_ID_USER table is empty

seema
Champ in-the-making
Champ in-the-making
I have integrated activiti-explorer and OpenLDAP. I created users in OpenLDAP and i am able to login in activiti-explorer using OpenLDAP's users but ACT_ID_USER table in activiti-explorer is empty. How to store users in ACT_ID_USER table. Here is my configuration:
<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="user" value="cn=admin,dc=test,dc=com" />
                <property name="password" value="secret" />

                <!– Query params –>
                <property name="baseDn" value="dc=test,dc=com" />
                <property name="queryUserByUserId" value="(&amp;(objectClass=inetOrgPerson)(mail={0}))" />
                <property name="queryUserByFullNameLike" value="(&amp;(objectClass=inetOrgPerson)(|({0}=*{1}*)({2}=*{3}*)))" />
                <property name="queryGroupsForUser" value="(&amp;(objectClass=group)(member={0}))" />

                <!– Only for Active Directories –>
                <property name="customConnectionParameters">
                <map>
                <entry key="InitialDirContext" value="Context.REFERRAL" />
                </map>
                </property>

                <!– Attribute config –>
                <property name="userIdAttribute" value="mail" />
                <property name="userFirstNameAttribute" value="givenName" />
                <property name="userLastNameAttribute" value="sn" />
      <property name="groupIdAttribute" value="gidnumber" />
                <property name="groupNameAttribute" value="cn" />

              </bean>
          </list>
        </property>

Please give some solution. Any help is appreciated.
6 REPLIES 6

jbarrez
Star Contributor
Star Contributor
If you're using LDAP, then there won't be any values in ACT_ID_USER. That table is only used when using the default Activiti identity management. Here, you are using LDAP, and the tables won't be used.

seema
Champ in-the-making
Champ in-the-making
Because ACT_ID_USER table does not storing any values that's why i am not able to create a task in activiti explorer using activiti-REST app. It is showing {"errorMessage":"Unauthorized","statusCode":401}. I want to create and claim tasks using activiti-REST app. Please give some solution for the same. What changes should be made??

jbarrez
Star Contributor
Star Contributor
That's a whole different problem than your original one. You will need to change the SecurityConfiguration of the REST appliction to do so.

seema
Champ in-the-making
Champ in-the-making
Thanks for your help

seema
Champ in-the-making
Champ in-the-making
Can you please tell me what SecurityConfiguration of REST need to be change?? What changes should be made.?? I will be very thankful to you. 🙂 Or i need to create another thread for this.

jbarrez
Star Contributor
Star Contributor
The SecurityConfiguration is not big: https://github.com/Activiti/Activiti/blob/master/modules/activiti-rest/src/test/java/org/activiti/re...

Making it go to LDAP is a topic widely discussed in the Spring Security docs.