Authentication Method
- Last Updated: August 13, 2024
- 2 minute read
- DataDirect Connectors
- ODBC
- PostgreSQL 8.0
- Documentation
Attribute
AuthenticationMethod (AM)
Purpose
Specifies the method the driver uses to authenticate the user to the server when a connection is established. If the specified authentication method is not supported by the database server, the connection fails and the driver generates an error.
Valid Values
0 | 4 |
13 | 17 | 18 | 36
Behavior
If set to 0 (User ID/Password), the driver
uses user ID/password authentication. The driver supports the MD5, SCRAM-SHA-256 and
SCRAM-SHA-256-PLUS password hashing mechanisms. During connection, the driver detects and
uses the most secure method supported by the server. You must also provide a value for the
User Name (LogonID) and Password (Password) options.
If set to 4 (Kerberos Authentication), the
driver uses Kerberos authentication. This method supports both Windows Active Directory
Kerberos and MIT Kerberos environments.
13 (Entra ID Password), the driver authenticates using an Entra
ID user name and password when connecting to a Azure SQL Database data store. TLS/SSL
encryption is enabled (EncryptionMethod=1) when using this method,
regardless of the value specified for EncryptionMethod. If set to 17 (SSL Verify CA), the driver uses certificate-based
authentication, which verifies client SSL certificate to authenticate the client to the
server.
If set to 18 (SSL Verify Full), the driver uses certificate-based
authentication, which verifies both client SSL certificate and host name to authenticate the
client to the server.
36 (Entra ID Service Principal), the driver authenticates using
an Entra ID service principal when establishing a connection to an Azure SQL Database data
store. TLS/SSL encryption is enabled (EncryptionMethod=1) when using this
method, regardless of the value specified for EncryptionMethod. Default
0 (User ID/Password)