Skip to Main Content

Security Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to Connect to OID in SSL mode in C# using System.DirectoryServices

699711May 14 2009
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 11 2009
Added on May 14 2009
0 comments
783 views