How to Connect to OID in SSL mode in C# using System.DirectoryServices
hi,
i am trying to connect to OID using LDAP protocol using .Nets System.DirectoryServices.
i am able to connect to OID with AuthenticationTypes.Anonymous.
I wan to connect to OID with SSL. i tried connecting using AuthenticationTypes.SecureSocketsLayer, but throws me an exception. What should be the LDAP server path string for SSL connection? What should be the AuthenticationType for SSL?
Here is the code i am using:
string strActivePath = "LDAP://297.168.49.57/dc=abc,dc=com";
entry = new DirectoryEntry(strActivePath, sOIDAdminUser, sOIDAdminPassword, AuthenticationTypes.SecureSocketsLayer);
if anyone can send me the sample code for this would be very helpful.
Thanks in Advance.
Regards,
Sandeep Pulkundwar