Skip to content

Commit

Permalink
Add NTLM as one of the default supported SASL mechanisms.
Browse files Browse the repository at this point in the history
  • Loading branch information
jstedfast committed Jul 27, 2021
1 parent 504d399 commit a7840ee
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions MailKit/Security/SaslMechanism.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,15 @@ public abstract class SaslMechanism
/// The supported authentication mechanisms in order of strongest to weakest.
/// </summary>
/// <remarks>
/// Used by the various clients when authenticating via SASL to determine
/// which order the SASL mechanisms supported by the server should be tried.
/// <para>Used by the various clients when authenticating via SASL to determine
/// which order the SASL mechanisms supported by the server should be tried.</para>
/// <note type="note">Even though NTLM is more secure than PLAIN or LOGIN (and
/// probably others), it is tried last only because it is less reliable due to
/// missing functionalioty to make it 100% compatible with all NTLM server
/// implementations.</note>
/// </remarks>
public static readonly string[] AuthMechanismRank = {
"SCRAM-SHA-512", "SCRAM-SHA-256", "SCRAM-SHA-1", "CRAM-MD5", "DIGEST-MD5", "PLAIN", "LOGIN"
"SCRAM-SHA-512", "SCRAM-SHA-256", "SCRAM-SHA-1", "CRAM-MD5", "DIGEST-MD5", "PLAIN", "LOGIN", "NTLM"
};
static readonly bool md5supported;

Expand Down

0 comments on commit a7840ee

Please sign in to comment.