Docs Home → MongoDB Command Line Interface
mongocli atlas security ldap save
On this page
Save an LDAP configuration.
Syntax
mongocli atlas security ldap save [options]
Options
Name | Type | Required | Description |
---|---|---|---|
--authenticationEnabled | false | Specifies whether user authentication with LDAP is enabled. | |
--authorizationEnabled | false | Specifies whether user authorization with LDAP is enabled. | |
--authzQueryTemplate | string | false | An LDAP query template that Atlas executes to obtain the LDAP groups to which the authenticated user belongs. |
--bindPassword | string | true | The password used to authenticate the bindUsername. |
--bindUsername | string | true | The user DN that Atlas uses to connect to the LDAP server. |
--caCertificate | string | false | CA certificate used to verify the identify of the LDAP server. |
-h, --help | false | help for save | |
--hostname | string | true | The hostname or IP address of the LDAP server. |
--mappingLdapQuery | string | false | An LDAP query formatting template that inserts the authentication name matched by the match regex into an LDAP query URI encoded respecting RFC4515 and RFC4516. |
--mappingMatch | string | false | An ECMAScript-formatted regular expression (regex) to match against a provided username. |
--mappingSubstitution | string | false | An LDAP distinguished name (DN) formatting template that converts the authentication name matched by the match regex into a LDAP DN. |
-o, --output | string | false | Output format.
Valid values: json|json-path|go-template|go-template-file |
--port | int | false | The port to which the LDAP server listens for client connections. (default 636) |
--projectId | string | false | Project ID to use. Overrides configuration file or environment variable settings. |
Inherited Options
Name | Type | Required | Description |
---|---|---|---|
-P, --profile | string | false | Profile to use from your configuration file. |