Need query to search users in active directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2013 04:32 AM
I am trying to integrate Activiti BPM 5.13 with Active directory.
and I am looking for search filter to query active directory for users.
I tried varies combination for search filter but nothing worked.
Attached is my activiti-standalone-context file in txt format
Kindly help to provide the exact search filter for microsoft Active directory.
Regards,
John
- Labels:
-
Archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2013 05:06 AM
Probably you'll need to google on Java + Activiti Directory in general to find out how it works, cause Activiti is under the hood just using regular java.naming stuff.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-12-2013 10:54 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2013 03:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-14-2013 06:04 AM
Did you try the suggestion in the last post: "I got around it by setting your InitialDirContext environment to have the Context.REFERRAL key set to "follow".
According to the Javadocs, that key can be "follow", "ignore", or "throw". The default is determined by the provider you use, which is probably "throw"."
You should be able to set those properties through the customConnectionParameters setting: see the docs for more info.
If it does work, please report back, so we can update the userguide accordingly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2013 01:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2013 04:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2013 09:42 AM
<code>
….
<property name="groupIdAttribute" value="cn" />
<property name="groupNameAttribute" value="cn" />
<property name="customConnectionParameters">
<Map>
<property name="InitialDirContext" value="Context.REFERRAL"/>
</Map>
</property>
….
</code>
If not how to set a property with <code> Map<String, String> </code> as stated in user guide?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2013 10:28 AM
http://www.mkyong.com/spring/spring-collections-list-set-map-and-properties-example/

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2014 04:33 AM
