Trying to authenticate through ldap using LdapDirectoryIdentifier to communicate to an openldap server.
Code snippet
dapDirectoryIdentifier ldi = new LdapDirectoryIdentifier("ldap.com", 636);
LdapConnection lconn = new LdapConnection(ldi);
lconn.SessionOptions.ProtocolVersion = 3;
lconn.Bind();
lconn.Dispose();
Running the code gives me an exception at Bind() stating LDAP server is not available. But upon reviewing my netstat, the connection is there and established. There are no other error messages available.
Any idea?