我刚刚注意到,结果的返回列表限制为1000.我的域中有超过1000个组(巨大域)。我怎样才能获得超过1000条记录?我可以从稍后的记录开始吗?我可以将它切成多个搜索吗?我可以从ASP.NET中的DirectorySearcher获得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;,但这似乎不起作用。有任何想法吗?
优秀的解决方法。值得赞赏。 – Biri 2008-09-18 07:40:38