There certainly is the capability in the LDAP API to do this, either with
sync or async ldap queries. I would expect this same functionality should be
availble in the Directory Searcher interface. Looping in a couple of guys
who may have possible answers. I think it comes down to matter of control.
You would hope that that level of control is available with the NET stuff.

  joe



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mikael H�kansson
Sent: Thursday, March 03, 2005 10:59 AM
To: [email protected]
Subject: [ActiveDir] DirectoryServices: Paged searches

Hi

I�m using the DirectoryServices namespace to collect contacts from active
directory.

To avoid timeouts and the 1000 object server limit, I�m using paged
searches.
However, the DirectorySercher seems to be a bit limited.

Whenever the DirSearcher.FindAll() function is called, It does not returned
the control back to the thread that called it until ALL contacts are
retrieved.
This is a major drawback if there are thousands of contacts matching the
search criteria (takes time).

Is there a way of e.g have every page returned and then continue the search
where it left off (using diretoryservices)?


//Mikael

List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to