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服务器。
答案 0 :(得分:3)
使用LDAP
代替ldap
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"