AnsweredAssumed Answered

Activiti-Explorer LDAP Group not set so Manage sec missing

Question asked by rangoo on Mar 22, 2013
Latest reply on Mar 25, 2013 by frederikheremans1
Activiti Explorer( Activiti v5.12) authentication worked, but Groups are not set. I overrode following methods of GroupEntityManager.

findGroupByQueryCriteria(GroupQueryImpl query, Page page)
findGroupsByUser(String userId)
findGroupCountByQueryCriteria(GroupQueryImpl  query)

Seems like Explorer app is not calling any of these methods. Am I missing something?

<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="customSessionFactories">
            <bean class="com.vv.ldap.LDAPUserManagerFactory">
               <constructor-arg ref="ldapConnectionParams" />
            <bean class="com.vv.ldap.LDAPGroupManagerFactory">
               <constructor-arg ref="ldapConnectionParams" />
    <property name="customFormTypes">
        <bean class="org.activiti.explorer.form.UserFormType"/>
        <bean class="org.activiti.explorer.form.ProcessDefinitionFormType"/>
        <bean class="org.activiti.explorer.form.MonthFormType"/>  
   <bean id="ldapConnectionParams"
      <property name="ldapServer" value="localhost" />
      <property name="ldapPort" value="10389" />
      <property name="ldapUser" value="uid=admin,ou=system" />
      <property name="ldapPassword" value="secret" />

UPDATE: Issue resolved with these 2 steps, but a question

1) I have to overide this method as well
    public GroupQuery createNewGroupQuery() {
          return new GroupQueryImpl(Context.getProcessEngineConfiguration().getCommandExecutorTxRequired());

2) I modified my LDAP group from cn=Admin to cn=admin

Question: How can I configure more roles in addition to user & admin to have more selective access to Activiti-Explorer?