If you're a MongoDB Enterprise user, you can use Kerberos authentication to connect to your self-managed MongoDB deployments.
To learn more, see Kerberos Authentication on Self-Managed Deployments.
Prerequisites
To use MongoDB with Kerberos, you must have a properly configured Kerberos deployment, configured Kerberos service principals for MongoDB, and a Kerberos user principal added to MongoDB.
For more information, see the following tutorials:
Configuration Options
To connect to a self-managed MongoDB deployment with Kerberos, configure the following options in your MCP server configuration with the required parameters:
CLI Option Name | OS Environment Variable Name | Type | Necessity | Description |
|---|---|---|---|---|
|
| string | Required | Kerberos principal name to authenticate as. |
|
| string | Required | Set to |
|
| string | Required | Set to |
|
| string | Optional | Specify the name of the service using GSSAPI/Kerberos. Only required if the service does not use the default name of |
|
| string | Optional | Specify the hostname of a service using GSSAPI/Kerberos. Only required if the hostname of a machine does not match the hostname resolved by DNS. |
|
| string | Optional | Specifies whether or not to use Hostname Canonicalization.
Has the same effect as setting the |