問題描述
我正在嘗試開發一個應用程序 (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 的服務器?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!