Reputation: 9279
I have a C#.Net MVC2 web app. We are loading a partial view with the results of a search on our LDAP directory. However, the max number of return result items is 1000. In other words, if I type "b" into the search box, only one thousand rows are returned from LDAP. It's causing some confusion. One of our users entered "b" as they were looking for Butamos. The list ended at Bond.
Here's the code. Is there a way to specify returning an unlimited number of result rows?
ViewBag.people = new DirectorySearcher(
new DirectoryEntry("LDAP<stuff>),
formattedSearchString,
new string[] { "displayname", "mail", "msExchHomeServerName", "homeServer" })
.FindAll());
Upvotes: 0
Views: 597