cancel
Showing results for 
Search instead for 
Did you mean: 

LDAP integration – users list is empty

tombo
Champ in-the-making
Champ in-the-making
I have activity-explorer 5.13 integrated with Active Directory by provided activiti-ldap client. Users are being authenticated and authorized as they should (aside SSO problem mentioned in another post).

However, I can't assign any task to other user as user list is empty and search doesn't find any user. No error is being thrown and there's nothing in the application server logs like no action was invoked, after typing several letters to the task assignment form.
Can anyone confirm this working with MS Active Directory?

Boris
18 REPLIES 18

clnyx
Champ in-the-making
Champ in-the-making
Hmm, it's my understanding that the query works now, but the list is still empty.
And thats why he was assuming: "So, problem is somewhere else."!?

tombo
Champ in-the-making
Champ in-the-making
Sorry for not being clear enough in my last post, but users list is empty no matter if I test against Microsoft Ad or Apache DS. That's reason for my conclusion that problem is somewhere else and not caused by LDAP client queries.
User is authenticated and authorized in both cases, but it’s impossible to assign task to anyone but yourself as user list is always empty.

Boris

tombo
Champ in-the-making
Champ in-the-making
Problem isn't related with LDAP/AD integration. After checking 5.14 version with default configuration (h2 database and no ldap integration) I've found the same situation: empty users list.
Tried with the chrome and IE browser and on the weblogic and tomcat application servers.

Regards,
Boris

werners
Champ in-the-making
Champ in-the-making
Hello all,

have these problems with (Apache) LDAP  solved in the meanwhile? Im still working with version 5.14, have the same issues concerning detecting the usergroups and would like to know if these problems are done in latest version 5.16. ?

If someone solved this topic in a different way, i would be thankful if you could give me a hint.

Thanks for help.
Werner

santosh1
Champ in-the-making
Champ in-the-making
Hi,

we have written a custom rendererfor our list box. But its not getting called.



import org.activiti.engine.form.FormProperty;
import org.activiti.explorer.ui.form.AbstractFormPropertyRenderer;

import com.vaadin.ui.Field;
import com.vaadin.ui.TextField;

public class AlistFormPropertyRenderer extends AbstractFormPropertyRenderer {
    public AlistFormPropertyRenderer() {
        super(AlistFormType.class);
    }

    public Field getPropertyField(FormProperty formProperty) {
        TextField textField = new TextField();
        textField.setRequired(formProperty.isRequired());
        textField.setEnabled(formProperty.isWritable());
        textField.setRequiredError(getMessage("form.field.required", new Object[]{getPropertyLabel(formProperty)}));
System.out.println("formProperty.getValue() "+formProperty.getValue());
        if (formProperty.getValue() != null) {
            textField.setValue(formProperty.getValue());
        }
        return textField;
    }
}

    <div class="form-group">
        <label for="${form?.id}" class="${form?.required ? 'required' : ''}">${raw(form?.name)}</label>
        <select name="${form?.id}" class="form-control" ${form?.required ? 'required' : ''}>
        <option value="${form?.value}">${form?.value} </option>
        <option value="Santosh">Santosh </option>
        </select>
    </div>

Here ${form?.value} is coming as null. Any thoughts on this.

jbarrez
Star Contributor
Star Contributor
This is a completely different topic than the original post. Please create a new post.

potitius
Champ in-the-making
Champ in-the-making
Hey,
I am on activiti 5.16 and I still have the same problem.

vasile_dirla
Star Contributor
Star Contributor
hi potitius,
considering the ldap settings you have posted here: http://forums.activiti.org/content/anyone-can-connect-ldap-no-users-password-verification
it's normal to have problems with the queries.

Here you have an example of ldap config (nothing special it's part of the open source project):
<code>
<bean class="org.activiti.ldap.LDAPConfigurator">
       
          <!– Server connection params –>
                <property name="server" value="ldap://localhost" />
                <property name="port" value="33389" />
                <property name="user" value="uid=admin, ou=users, o=activiti" />
                <property name="password" value="pass" />
               
                <!– Query params –>
                <property name="baseDn" value="o=activiti" />
                <property name="queryUserByUserId" value="(&amp;(objectClass=inetOrgPerson)(uid={0}))" />
                <property name="queryUserByFullNameLike" value="(&amp;(objectClass=inetOrgPerson)(|({0}=*{1}*)({2}=*{3}*)))" />
                <property name="queryGroupsForUser" value="(&amp;(objectClass=groupOfUniqueNames)(uniqueMember={0}))" />
               
                <!– Attribute config –>
                <property name="userIdAttribute" value="uid" />
                <property name="userFirstNameAttribute" value="cn" />
                <property name="userLastNameAttribute" value="sn" />
               
                <property name="groupIdAttribute" value="uid" />
                <property name="groupNameAttribute" value="cn" />
               
        </bean>
</code>

vasile_dirla
Star Contributor
Star Contributor
hi potitius,
check your LDAP config (focus on the queries you provide)