Directory Programming .NET

Active Directory and ADAM programming support for .NET developers
Welcome to Directory Programming .NET Sign in | Join | Help
in Search

SecureSocketsLayer

Last post 05-15-2008, 2:03 PM by joe. 1 replies.
Sort Posts: Previous Next
  •  05-15-2008, 12:16 PM 3566

    SecureSocketsLayer

    In regards to the SessionOptions object of an LdapConnection, what does setting SecureSocketsLayer to true entail?

    If you give a secure port (example: 636), does setting SecureSocketsLayer true require that all communication be over SSL?
  •  05-15-2008, 2:03 PM 3568 in reply to 3566

    Re: SecureSocketsLayer

    As I recall, you need to set the port to use the secure port (636 unless a different port has been defined) AND set the SecureSocketLayer flag in order to get SSL, although my quick test with LDP against AD a second ago seemed to get an SSL connection when I used the SSL port but did not check the SSL checkbox. 

    I would recommend doing both, even if you get SSL without setting the SSL option.

    What this does is encrypts all communication with SSL.  It will only work if the server actually supports SSL (AD does not by default although it can be configured to fairly easily).

View as RSS news feed in XML