windows 什么是我的 LDAP 连接字符串
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1279352/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is my LDAP Connection String
提问by ferronrsmith
Are there any tools that tell you what your LDAP connection string is?
是否有任何工具可以告诉您 LDAP 连接字符串是什么?
回答by Kevin LaBranche
There's a tool called Softerra ldap browser that I used when I was first messing around with ldap on windows.
当我第一次在 Windows 上使用 ldap 时,我使用了一个名为 Softerra ldap 浏览器的工具。
It connected something like this ldap://domaincontrollername:port/ and used my network credentials.
它连接了类似 ldap://domaincontrollername:port/ 的东西,并使用了我的网络凭据。
I also have done a little in .net with it and have had similar strings to connect and also using ldap://DC=domainname and if your domain name is something like here.there then ldap://dc=here,dc=there
我也用它在 .net 中做了一些,并且有类似的字符串要连接,并且还使用 ldap://DC=domainname,如果您的域名类似于 here.there,那么 ldap://dc=here,dc=那里
回答by Corey B
I ran the following VBScript on the Server.
我在服务器上运行了以下 VBScript。
Set objSysInfo = CreateObject("ADSystemInfo")
objSysInfo.RefreshSchemaCache
WScript.Echo "User name: " & objSysInfo.UserName
Copy all of the DCs displayed in the dialog box and use that as your LDAP connection string following LDAP://
复制对话框中显示的所有 DC,并将其用作 LDAP:// 之后的 LDAP 连接字符串
回答by Ian Jacobs
Are you looking for examples of how to set one up?
您是否正在寻找如何设置的示例?
http://www.connectionstrings.com/should help if that's the case.
如果是这种情况,http://www.connectionstrings.com/应该会有所帮助。
回答by Justin Dearing
Do you mean what is the name of the LDAP servers for your active directory domain? Then you want to use SRV records. Assuming your active directory base domain is foo.com you want to look up the SRV record of _ldap_tcp.foo.com see this technet article
您的意思是您的 Active Directory 域的 LDAP 服务器名称是什么?然后你想使用 SRV 记录。假设您的活动目录基域是 foo.com,您要查找 _ldap_tcp.foo.com 的 SRV 记录,请参阅此技术网文章