Authentication Method
- Last Updated: July 30, 2025
- 1 minute read
- DataDirect Connectors
- ODBC
- MongoDB 8.0
- Documentation
Attribute
AuthenticationMethod (am)
Purpose
Determines which authentication mechanism the driver uses when establishing a connection.
Valid Values
15 | 0 | 17 | 4
Behavior
If set to 15 (None), the driver does not attempt to authenticate.
If set to 0 (UserIDPassword), the driver uses user ID/password authentication. The User option provides the user ID, and the Password option provides the password.
If set to 17 (Plain), the driver uses LDAP authentication. You must also provide a value for the User and Password options.
Important: When LDAP authentication is enabled, credentials are passed in clear text. Therefore, you should use LDAP authentication only on servers that are configured for TLS/SSL encryption.
If set to 4 (Kerberos), the driver uses Kerberos authentication.
Notes
-
When
AuthenticationMethod=UserIdPassword, it is recommended that you specify the database in which your user ID was created using the Authentication Database (AuthenticationDatabase) option. Since you can create the same user ID in different databases in MongoDB, this practice ensures that you are attempting to connect to the user ID with the correct permissions. -
When authentication is enabled, the client application will have access only to databases as dictated by the roles and privileges of the authenticated user.
Default Value
0 (UserIDPassword)