如何找出在我的 Windows 域上托管 LDAP 的服务器?
- 作者: 姐就是姐_别侮辱姐
- 来源: 51数据库
- 2022-10-21
问题描述
我正在尝试开发一个应用程序 (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.
- C#通过fleck实现wss协议的WebSocket多人Web实时聊天(附源码)
- 团队城市未满足要求:MSBuildTools12.0_x86_Path 存在
- 使用 MSBuild.exe 在发布模式下构建 C# 解决方案
- 当我发布 Web 应用程序时,AfterPublish 脚本不运行
- 构建时 T4 转换的产品仅在下一个构建中使用
- ASP.NET Core Application (.NET Framework) for Windows x64 only error in project.assets.json
- 新的 .csproj 格式 - 如何将整个目录指定为“链接文件"到子目录?
- 如何将条件编译符号(DefineConstants)传递给 msbuild
- MSBuild 支持 Visual Studio 2017 RTM 中的 T4 模板
- NuGet 包还原找不到包,没有源
