Novell.Directory.Ldap Paged Search Results

2.4k views Asked by At

I am using the Novell.Directory.Ldap library from .net core to search Active Directories. By and large, this library works really well and I've used it on many directories successfully.

However, I have come across a problem with the search limit being limited to 1,000 records - I have come across an AD that has more like 10,000 entries.

I know that I can set the limits to increase the soft limit in the Novell library, and that will then use the DC's search limits, which from what I can see are 5,000 by default.

If I were using the full framework, I could use System.DirectoryServices which has a paged search option, which would allow me to search using a smaller page size, but eventually get all results.

Is there any way to do an equivalent paged search operation in the Novell.Directory.Ldap library?

1

There are 1 answers

2
jwilleke On BEST ANSWER

The Simple Paged Results Control can be set with a window used to retrieve all entries from Microsoft Active Directory.

Active Directory servers have a default server-side limit of 1000 entries as the maximum number of results that are returned in a single request. If the results of a query exceed this limit, the Paged Results control is used with a page size equal to or less than the server-side limit in order to retrieve all of the results of the query.

So you should be able to make this happen as long as the page size is less than 1000.

Not sure about the implementation but I did find a sample in Github.