title: Authentication Types when switching from System.DirectoryServices to DirectoryServices.Protocols
body: <p>I need to know the equivalent AuthType values from AuthenticationTypes to migrate from S.DS to S.DS.P code.</p>
  
  <p>I am rewriting an LDAP connection module that currently uses the System.DirectoryServices namespace. To increase compatibility with non-ActiveDirectory servers, I am trying to rewrite all of the code to use System.DirectoryServices.Protocols (as per the suggestion in "The .NET Developer's Guide to Directory Services Programming). Everything is going smoothly except for the transition between using the AuthenticationTypes enumeration to the AuthType one used by SD.Protocols. I need to know the equivalents between the two so that clients using the old code do not lose functionality when the new code is released.</p>
  
  <p>The equivalencies that I know of are:<br/>
  None -> Basic<br/>
  Secure -> Negotiate (more or less)<br/>
  Anonymous -> None<br/>
  SecureSocketsLayer -> setting LdapSessionOptions.SecureSocketsLayer to true</p>