Last post Sep 06, 2011 11:17 AM by bbcompent1
Sep 02, 2011 12:56 PM|SanDev|LINK
Hi All, Hope everyone is doing great.
I am writing a .NET dll which tries to connect to a LDAP server over SSL port like below. But it fails at the connection call.
LdapConnection conn = new LdapConnection();
conn.SecureSocketLayer = true;
I was able to make it with default port 393 but could not make the connection over SSL port 636. I am thinking its something with the certificates. Can some one help me how can we get the certificate to authenticate.
Sep 02, 2011 01:20 PM|bbcompent1|LINK
I think you may be running into a potential code-signing issue. You'll need to contact a CA to get one of those - Verisign is the most widely accepted. Does the server event viewer give you any errors? Have you looked at the domain controller event viewer
to see if there are any errors? Is the DC providing an SSL port for the LDAP query?
Sep 06, 2011 10:31 AM|SanDev|LINK
Thanks for the reply. Actually, theoritically, can you please outline the steps that we should take to connect to LDAP server over SSL port through C#.
Can we use NOVELL dll ? or Microsoft librarures should do it?
Sep 06, 2011 11:17 AM|bbcompent1|LINK
Take a look at this: http://umanage.codeplex.com/ I think their code may give a sample of performing an SSL LDAP Query if my memory serves me correctly.