PC Review


Reply
Thread Tools Rate Thread

ADSI/LDAP Query

 
 
khaja shaik
Guest
Posts: n/a
 
      21st Jul 2003
Arianne, I have the following code in C Sharp which query
the Active Directory to get the user details. But it
brings up only 1000 records.
Is there any code which can give me all the records from
Active Directory.
I have the folowing code in c sharp. But it returns only
1000 records. Is there a way to get all teh records from
Active Directory.

DirectoryEntry de = new DirectoryEntry
("LDAP://OU=StoreUsers,DC=test,DC=test,DC=test,DC=net");
DirectorySearcher src = new DirectorySearcher(de);
src.SearchRoot = de;

foreach(SearchResult res in src.FindAll())
{
while(ien.MoveNext())
{
Console.WriteLine (ien.Key.ToString());
Console.WriteLine (res.Properties
[ien.Key.ToString()][0]);
}
}
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
USE OF ADO TO ACCESS OBJECT THRU AN ADSI LDAP PROVIDER =?Utf-8?B?U2FuZHJv?= Microsoft Access VBA Modules 3 27th Oct 2005 05:34 PM
LDAP / ADSI problems =?Utf-8?B?UkJyYWR5?= Microsoft ASP .NET 0 4th May 2005 07:05 PM
Using ADSI and LDAP to retrieve user attributes from active direct =?Utf-8?B?bllzc2E=?= Microsoft Outlook Form Programming 1 6th Dec 2004 04:23 AM
Re: LDAP ADSI issue Mike Niccum Microsoft Windows 2000 Active Directory 0 30th Aug 2004 11:06 PM
Re: LDAP ADSI issue Joe Richards [MVP] Microsoft Windows 2000 Active Directory 6 26th Aug 2004 02:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:12 AM.