How can I find out which server hosts LDAP on my windows domain?(如何找出我的 Windows 域上托管 LDAP 的服务器?)
问题描述
我正在尝试开发一个应用程序 (C#) 来查询 LDAP 服务器.我不知道要查询的实际服务器 - 有没有办法使用标准 Windows 工具或 .net 中的东西来查找?
I am trying develop an application (C#) to query an LDAP server. I don't know the actual server named to query - is there a way to find out using standard windows tools or something in .net?
我还听说过,只要我的查询字符串中有 dc=domain,dc=com,并不总是需要使用服务器名称 (ldap://server/),但我确实如此远远能够以这种方式使用它.
I've also heard rumors that having the server name (ldap://server/) is not always needed as long as I've got dc=domain,dc=com in my query string, but I've so far been able to work with it this way.
有什么建议吗?
谢谢
推荐答案
如果你使用 AD 你可以使用 无服务器绑定 为默认域定位域控制器,然后使用 LDAP://rootDSE 获取有关目录服务器的信息,如链接文章中所述.
If you're using AD you can use serverless binding to locate a domain controller for the default domain, then use LDAP://rootDSE to get information about the directory server, as described in the linked article.
这篇关于如何找出我的 Windows 域上托管 LDAP 的服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何找出我的 Windows 域上托管 LDAP 的服务器?


基础教程推荐
- 为什么Flurl.Http DownloadFileAsync/Http客户端GetAsync需要 2022-09-30
- 如何在 IDE 中获取 Xamarin Studio C# 输出? 2022-01-01
- 将 Office 安装到 Windows 容器 (servercore:ltsc2019) 失败,错误代码为 17002 2022-01-01
- 有没有办法忽略 2GB 文件上传的 maxRequestLength 限制? 2022-01-01
- c# Math.Sqrt 实现 2022-01-01
- 将 XML 转换为通用列表 2022-01-01
- SSE 浮点算术是否可重现? 2022-01-01
- MS Visual Studio .NET 的替代品 2022-01-01
- 如何激活MC67中的红灯 2022-01-01
- rabbitmq 的 REST API 2022-01-01