【问题标题】:LDAP connection error code {"Unknown error (0x80005000)"}LDAP 连接错误代码 {“未知错误 (0x80005000)”}
【发布时间】:2014-01-30 04:47:33
【问题描述】:
Dim oEntry As DirectoryEntry
Dim path As String = "ldap://10.0.17.79:389/dc=maxcrc,dc=com"
Dim username As String = "cn=Manager,dc=maxcrc,dc=com"
oEntry = New DirectoryEntry(path, username, "abc")

无法连接到 openLDAP 服务器。

【问题讨论】:

  • 我不会错过所有那些 [几乎没用的] COM 错误:|

标签: vb.net ldap directoryentry


【解决方案1】:

使用LDAP 而不是ldap

MSDN 说

The section of the Path that identifies the provider (precedes "://") is 
case-sensitive. For example, `"LDAP://"`

Dim path As String = "LDAP://10.0.17.79:389/dc=maxcrc,dc=com"

MSDN

【讨论】:

  • 不,它仍然无法正常工作。 System.DirectoryServices.DirectoryServicesCOMException'发生在 System.DirectoryServices.dll
猜你喜欢
  • 1970-01-01
  • 2021-03-08
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-05-26
  • 1970-01-01
  • 2010-12-15
相关资源
最近更新 更多