Advertisement

07.11.2007 at 03:27AM PDT, ID: 22688313
[x]
Attachment Details

Fetching all the records from Active Directory through .NET

Asked by dinesh_bali in C# Programming Language, .NET

Tags: active, directory, fetch

I am trying to fetch all the records from Active Directory. This is a .net application.

Here are the filters that I am using in web.config file  to populate the active directory records.

<add key="ADFilterCriteria"
value="(|(&amp;(&amp;(objectCategory=user)(!(userAccountControl:1.2.840.113556.1.4.804:=2))(!(userAccountControl:1.2.840.1135
56.1.4.804:=65536)))(!(pwdLastSet=0)))(&amp;(msExchHomeServerName=*)(memberof=*)))" ></add>  -->

808, Missing (GThomas,ABrannstrom)

 
(|(&amp;(&amp;(objectCategory=user)(sAMAccountName=user)(objectClass=user)(!(userAccountControl:1.2.840.113556.1.4.804:=2))(!
(userAccountControl:1.2.840.113556.1.4.804:=65536)))(!(pwdLastSet=0)))(&amp;(msExchHomeServerName=*)(memberof=*))) -->

759, Missing (dl')

If you look in the above filters, there are two filters. If I am trying with first one its missing some records. In my case(GThomas,ABrannstrom), and user (DL' Estrange) is coming. And when I am applying second filter, its missing user  (DL' Estrange).

Please give me the filter type from which I can fetch all the records even  (DL' Estrange) this type of users.

Please let me know in case of any confusion.

Many Thanks,
Start Free Trial
 
Loading Advertisement...
 
[+][-]07.18.2007 at 08:40AM PDT, ID: 19514603

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: C# Programming Language, .NET
Tags: active, directory, fetch
Sign Up Now!
Solution Provided By: darkstar3d
Participating Experts: 1
Solution Grade: A
 
 
[+][-]08.16.2007 at 04:42PM PDT, ID: 19713689

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]08.16.2007 at 06:53PM PDT, ID: 19714171

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.21.2007 at 05:25PM PDT, ID: 19742805

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]08.26.2007 at 05:26PM PDT, ID: 19772893

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32