Note
Starting in MongoDB 8.0, LDAP authentication and authorization is deprecated. LDAP is available and will continue to operate without changes throughout the lifetime of MongoDB 8. LDAP will be removed in a future major release.
You can connect to your MongoDB Enterprise deployment or MongoDB Atlas cluster using Lightweight Directory Access Protocol (LDAP) authentication with the MongoDB MCP server.
To learn more, see the following resources:
Configuration Options
To connect to a MongoDB deployment with LDAP, configure the following options in your MCP server configuration:
CLI Option Name | OS Environment Variable Name | Type | Necessity | Description |
|---|---|---|---|---|
|
| string | Required | Set the username to a username that respects the
|
|
| string | Required | Password for the specified LDAP user. |
|
| string | Required | Set to |
|
| string | Required | Set to |