我刚注意到结果返回的列表被限制在1000条。我的域中有超过1000个组(庞大的域)。我如何获取超过1000条记录?我可以从后面的记录开始吗?我可以将其分成多个搜索吗?
这是我的查询:
这是我的查询:
DirectoryEntry dirEnt = new DirectoryEntry("LDAP://dhuba1kwtn004");
string[] loadProps = new string[] { "cn", "samaccountname", "name", "distinguishedname" };
DirectorySearcher srch = new DirectorySearcher(dirEnt, "(objectClass=Group)", loadProps);
var results = srch.FindAll();
我尝试设置srch.SizeLimit = 2000;,但好像没起作用。有什么想法吗?