I am trying to authenticate with Edirectory with .Net 2.0, and I
always get an Exception with message "Unknown Error" when I try to
bind. Any ideas?
Currently I am trying to use the System.DirectoryServices library.
The connection to EDirectory server is over ssl. (ldaps)
I have tried numerous AuthenticationTypes including
SecureSocketsLayer, and FastBind.
I have also tried numerous paths, some of which are listed below.
ldap://authldap.domain.edu (with
AuthenticationTypes.SecureSocketsLayer)
ldaps://authldap.domain.edu:636
ldaps://authldap.domain.edu/?uid?sub?(objectClass=inetOrgPerson)
ldaps://authldap.domain.com/ou=users,o=org?uid?sub?(objectClass=inetOrgPerson)
Dim dn As String = "cn=" & username & ",ou=orgunit,o=org"
Dim path As String = "
ldap://authldap.domain.edu"
Dim entry As DirectoryEntry = New DirectoryEntry(path, dn,
pwd, AuthenticationTypes.SecureSocketsLayer)
I always get the Exception: Message "Unknown error (0x80005000)"