Get replication value meta data with DirectorySearcher for large ADGroups

六眼飞鱼酱① 提交于 2019-12-23 02:31:04

问题


I'm trying to get the replication value meta data from an ADGroup with over 20.000 members. Here's the code:

const string replicationData = "msDS-ReplValueMetaData";

var directoryEntry = new DirectoryEntry($"LDAP://{dn}");

var directorySearcher = new DirectorySearcher(directoryEntry, 
                                              null, 
                                              new string[]
                                                         {
                                                             replicationData
                                                         });


var propertyResultCollection = (directorySearcher.FindOne()).Properties[replicationData];

It works pretty fine for small groups but if the groups have too much members i just receive an empty collection.

来源:https://stackoverflow.com/questions/43636496/get-replication-value-meta-data-with-directorysearcher-for-large-adgroups

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!