CData Python Connector for MySQL

Build 25.0.9454

NTLMVersion

Specifies the version of the NTLM protocol to use when authenticating with Windows credentials. This setting is only applicable when AuthScheme=NTLM.

Possible Values

1, 2

Data Type

string

Default Value

"1"

Remarks

This property allows you to control which version of the NTLM authentication protocol is used. Two versions are supported:

  • 1 – NTLMv1: The original version of the NTLM protocol. It offers basic authentication support but is generally considered less secure.
  • 2 – NTLMv2: A more secure and widely recommended version that includes enhanced session security and cryptographic protection.
The default value is 1 (NTLMv1).

Set this property to 2 to comply with modern security policies and Active Directory environments that require NTLMv2. Use 1 only if you are connecting to legacy systems that do not support NTLMv2.

Note: Some domain controllers may reject NTLMv1 requests due to security policy restrictions. If authentication fails with version 1, try setting NTLMVersion=2.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9454