AuthenticationMethod
- Last Updated: January 19, 2018
- 2 minute read
- DataDirect Connectors
- JDBC
- IBM Db2 5.1
- MySQL 5.1
- Progress OpenEdge 5.1
- SAP Sybase 5.1
- Documentation
Purpose
Determines which authentication method the driver uses when establishing a connection.
Valid Values
auto | kerberos | kerberosUIDPassword | ntlm |
client | ssl |
sslUIDPassword | userIDPassword
Behavior
If
set to auto, the driver uses user ID/password,
Kerberos, or NTLM authentication when establishing a connection.
The driver selects an authentication method based on a combination
of criteria, such as whether the application provides a user ID,
the driver is running on a Windows platform, and the driver can
load the DLL required for NTLM authentication. See Using the AuthenticationMethod Property for more information about using this
value.
If set to kerberos, the driver uses
Kerberos authentication. The driver ignores any user ID or password
specified.
If set to kerberosUIDPassword,
the driver first uses Kerberos to authenticate the user. Next, the
driver reauthenticates the user using user ID/password
authentication. If a user ID and password are not specified, the
driver throws an exception. If either Kerberos or user ID/password authentication
fails, the connection attempt fails and the driver throws an exception.
If
set to ntlm, the driver uses NTLM authentication
if the DLL required for NTLM authentication can be loaded. If the
driver cannot load the DLL, the driver throws an exception. The
driver ignores any user ID or password specified. This value is
supported for Windows clients only.
If set to client,
the driver uses the user ID of the user logged onto the system on
which the driver is running to authenticate the user to the database.
The Oracle database server relies on the client to authenticate the
user and does not provide additional authentication. The driver
ignores any user ID or password specified. This value requires the
remote_os_authent parameter on the database server to be set to true.
If set to ssl, the driver uses SSL certificate information to authenticate the client with the server when using Oracle Wallet. The User Name and Password options should not be specified. See "Oracle Wallet SSL Authentication" for additional requirements.
If set to sslUIDPassword, the driver uses user ID/password and SSL authentication to connect with the server when using Oracle Wallet. See "Oracle Wallet SSL Authentication" for additional requirements.
If
set to userIdPassword, the driver uses user ID/password
authentication. If a user ID and password are not specified, the
driver throws an exception.
Notes
- The
values
type2andnoneare deprecated, but are recognized for backward compatibility. Use thentlmanduserIdPasswordvalues, respectively, instead. - The User property provides the user ID. The Password property provides the password.
- If NewPassword is
specified, its value is used only if user ID/password authentication
is enabled explicitly (AuthenticationMethod=
userIdPassword) or implicitly (AuthenticationMethod=autoand a user ID and password is supplied); otherwise, the driver throws an exception.
Default
auto
Data Type
String