問題描述
我正在嘗試開發(fā)一個應(yīng)用程序 (C#) 來查詢 LDAP 服務(wù)器.我不知道命名為查詢的實(shí)際服務(wù)器 - 有沒有辦法使用標(biāo)準(zhǔn)的 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,就不一定需要服務(wù)器名稱 (ldap://server/),但我確實(shí)如此遠(yuǎn)遠(yuǎn)能夠以這種方式使用它.
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 你可以使用 無服務(wù)器綁定 為默認(rèn)域定位域控制器,然后使用 LDAP://rootDSE 獲取有關(guān)目錄服務(wù)器的信息,如鏈接文章中所述.
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.
這篇關(guān)于如何找出在我的 Windows 域上托管 LDAP 的服務(wù)器?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!