cost 497 ms
通过 DirectoryServices 在给定字段(例如国家/地区)中查询 Active Directory 中的不同值 - Query Active Directory for distinct values in a given field (e.g. Country) via DirectoryServices

我需要以编程方式检索 Active Directory 中给定字段的所有不同值(例如,国家字段“co” - 但我会有其他字段)我不在乎给定值出现了多少次或谁/什么它与-我只需要当前在其中的不同国家/地区的列表。 我有这个可以生成列表 - 但由于明显的原因,它的速度慢得令人无法接受,因为它正在查询 A ...

无法使用 System.DirectoryServices.dll 的项目引用使用 Visual C++ 创建 DirectorySearcher class 的 object - Can not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll

System.DirectoryServices.dll 文件已通过解决方案资源管理器中的引用成功添加到 Visual C++ 项目中。 Microsoft 开发环境 2003 版本 7.1.3088。 Microsoft.Net Framework 1.1 版本 1.1.4322 通过这种 ...

DirectorySearcher object 数据检索在 Azure 托管应用程序上不起作用 - DirectorySearcher object data retrieving not working on Azure hosted application

此代码曾经为我工作,以便在通过参数传递 ID 时检索用户的 AD 信息。 当应用程序服务托管在另一台服务器上时它可以工作,但现在它已迁移到 Azure,FindAll 命令(也已测试 FindOne)返回“检索数据时出错。”,“状态”:400,详细信息":"访问被拒绝。" ...

LDAP 错误:用户访问权限不足。 :LdapErr:DSID-0C09099D,注释:错误处理控制, - LDAP Error: The user has insufficient access rights. : LdapErr: DSID-0C09099D, comment: Error processing control,

我想使用 C# 从 Active Directory 获取增量更改,为此我正在尝试构建一个解决方案,如以下文章中所述(使用 DirSync Control)。 https://docs.microsoft.com/en-us/windows/win32/ad/polling-for-change ...

进行 [adsisearcher] 并存储在哈希表或字典集合列表中的最快方法 - Quickest way to do a [adsisearcher] and store in a hashtable or dictionary collection list

我正在使用 [adsisearcher] 来获取 AD 用户信息,因为它比 get-aduser 快得多。 我还试图弄清楚如何使用 LINQ 或任何其他快速的替代方法将其添加到哈希表或字典中。 对我来说,我正在努力获得最佳性能/最高效率,因为长期目标是将数据导入联系人列表。 这是我目前拥有的,效果很 ...

DirectorySearcher 查找具有特定经理的所有条目 - DirectorySearcher to find all entries with a specific manager

我想通过 PowerShell 找到具有特定管理器的所有 AD 条目。 我需要如何设置过滤器? 假设我们有以下组织: usera是userb 、 userc和userd的经理所以我希望过滤器返回 usera、userb、userc 和 userd。 结果总是空的。 但是,如果我将完整的专有名称属性从 ...

在 asp .net、IIS 8 环境中使用目录服务获取未知错误 (0x80005000) - Getting Unknown error (0x80005000) with Directory services in asp .net, IIS 8 environment

此处显示的代码中发生错误。 我根据谷歌研究尝试了以下方法,但错误仍然存​​在 确保“LDAP”为大写 安装了 II6 肉库 6。 如果应用程序池或 IIS 重新启动,则错误消失。 但一天后,它又回来了。 任何帮助表示赞赏。 ...

Active Directory 组中有多个 ManagedBy 实体 - More than one ManagedBy entity on an Active Directory group

是否可以将多个实体/个人列为 AD 组的经理? 我有一个使用 Exchange 创建的通讯组。 从 Exchange 端查看时,该组具有多个ManagedBy实体。 当我使用DirectorySearcher AD 查询时,仅显示ManagedBy的一个条目,即第一个条目。 我可以使用已知用户的字符 ...

无法从 Active Directory 读取所有用户 - [DirectoryServicesCOMException] MoveNext() - Cannot read all users from Active Directory - [DirectoryServicesCOMException] MoveNext()

我的团队正在使用用 C# 编写的程序来读取特定 OU 中的所有用户。 该程序的行为非常奇怪。 有时它工作了几个星期,然后我们的 AD 或任何其他相关组件没有任何大的变化,它就会引发异常。 然后它不工作了几个星期,一段时间后它又开始正常运行。 代码 例外 附加信息目标框架:.Net Framewor ...

我可以仅使用 extensionAttribute4 创建 DirectorySearcher 过滤器吗? - Can I create a DirectorySearcher filter using only extensionAttribute4?

我正在使用 DirectorySearcher,我想获取所有未设置 extensionAttribute4 的 AD 用户。 在这里,我正在使用返回所有 AD 用户的 DirectorySearcher,但我需要帮助我如何更改此 DirectorySearcher,使其返回未设置 extensio ...

System.DirectoryServices.DirectorySearcher 缓存改进或 FindAll() 过滤 - System.DirectoryServices.DirectorySearcher caching improvement or FindAll() filtering

我正在尝试提高对活动目录分层组结构的 searcher.FindAll() 调用的性能。 该代码获取所有用户组的 SearchResultCollection,然后根据搜索字符串过滤组。 SearchResultCollection 集合中有大约 400 个组,过滤后的版本通常有 40 个。我认 ...

DirectorySearcher 异步使用 await - DirectorySearcher Asynchronous using await

我正在使用 .net 4.7.2(非核心)和 C#。 我需要想出一种方法来不阻止我当前的异步任务,并且我需要搜索用户作为这些任务的一部分。 我之前已经完成了 DirectorySearcher 操作,所以我知道 AD 的附件和第一次搜索可能需要几秒钟,如果我尝试从现有的异步方法调用它,这真的会导致 ...

如何更新 LDAP AD 中“usercert”属性的值 - How to update value of a "usercert" property in LDAP AD

我有一个要求,我需要更新活动目录中存在的计算机的属性(“usercert”)中保存的值。 // 从 AD 中检索属性值 // 将新值更新为 AD 字符串 updatedText="New Text"; 我尝试了所有上述注释代码,但没有任何效果对我有用。 你能帮我解决这个问题吗? ...

DirectorySearcher 在本地工作但不在 IIS 服务器中工作 - DirectorySearcher working in Local but not working in IIS server

我想列出所有邮件列表或搜索我的 Active 目录中存在的邮件 ID,所以我已经使用 DirectorySearcher 如下所示并在我的本地系统中工作,如果我通过 Visual Studio 运行它但在我发布或部署这些代码时不起作用一个 IIS 服务器。 我的 C# 代码, 我本地的目录路径 ...

如何使用 LDAP 和 C# 搜索用户 ID 列表? - How do I search for a list of user id's using LDAP and C#?

我需要搜索给定特定用户 ID 列表的用户。 如果我使用此过滤器搜索单个用户,它工作正常: 我发现了这个LDAP 过滤器语法页面,它显示条件可以嵌套。 (|(cn=Jim Smith)(&(givenName=Jim)(sn=Smith))) 条件可以用括号嵌套,但要确保括号匹配。 所以我 ...

C#Active Directory DirectorySearcher仅找到我自己的用户 - C# Active Directory DirectorySearcher is only finding my own user

我有一个函数,用于查找与给定名称匹配的任何用户的displayName和mail字段。 到目前为止,它仍然有效,但是它只会返回我以其身份登录的用户。 我已经尝试过不同版本的DirectorySearcher ,例如: 我还尝试了不同的路径格式和AuthenticationType ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM