2014-01-30 2 views
1
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.Код ошибки подключения LDAP {"Неизвестная ошибка (0x80005000)"}

+0

Я не буду скучать по всем тем [рядом бесполезных] COM ошибок: | – user2864740

ответ

2

Использование 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

+0

Нет, он еще не работает. System.DirectoryServices.DirectoryServicesCOMException "произошел в System.DirectoryServices.dll – user3251599

Смежные вопросы