我只是注意到结果的返回列表限制为1000。我的域(HUGE域)中有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; ,但这似乎不起作用。有任何想法吗?
忽然笑
相关分类