Anil Kumar

Anil Kumar

  • 711
  • 1.3k
  • 134.2k

samAccount in Ldap query for asp.net c#

May 16 2017 3:15 PM
Hi How can search two or more user throgh Ldap query in same time like below query??
 
(|(|(|( samAccountname=abc){0}(samAccountname=xyz){0})(department=AB){0}(|(objectclass=user)(objectclass=contact)(objectcategory=group))))
 
Actualy i want to search for multiple user using for loop in one query 
 
i am using this query in C# to get users from Active Direcrty  
 
 
please help
 
Thanks