LDAP连接错误代码{“未知错误(0x80005000)”}

时间:2014-01-30 04:47:33

标签: vb.net ldap directoryentry

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服务器。

1 个答案:

答案 0 :(得分:3)

使用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