hi jbarrez,
We have found the correct search query in ADS i.e. (&(objectCategory=person)(objectClass=user)(CN={0}))
but we are still unable to authenticate against ADS in Activiti BPM.
We are receiving the following error,
"org.activiti.ldap.LDAPUserManager - Could not authenticate user amit : Unprocessed Continuation Reference(s)
javax.naming.PartialResultException: Unprocessed Continuation Reference(s); remaining name 'DC=FILENET,DC=TEST,DC=COM'"
The work around as per online forum seems to setting a particular java property, "-Djava.naming.REFERRAL=follow" in the startup of the application server i.e. Apache Tomcat 7.0. But even after setting this java property we are receiving the above error.
Our LDAP configuration looks like below,
<bean class="org.activiti.ldap.LDAPConfigurator">
<!– Server connection params –>
<property name="server" value="ldap://xxx.xxx.xxx.xxx"/>
<property name="port" value="389"/>
<property name="user" value="CN=amit,CN=Users,DC=FILENET,DC=TEST,DC=COM" />
<property name="password" value="password" />
<!– Query params –>
<property name="baseDn" value="DC=FILENET,DC=TEST,DC=COM"/>
<property name="queryUserByUserId" value="(&(objectCategory=person)(objectClass=user)(CN={0}))"/>
<property name="queryGroupsForUser" value="(&(objectCategory=group)(objectClass=group)(CN={0}))"/>
<!– Attribute config –>
<property name="userIdAttribute" value="cn" />
<property name="userFirstNameAttribute" value="cn" />
<property name="userLastNameAttribute" value="sn" />
<property name="groupIdAttribute" value="cn" />
<property name="groupNameAttribute" value="cn" />
</bean>
</list>
</property>
</bean>
Kindly advise if we are missing any configuration here or any specific setting.
Thanks,
John