Skip to content

Commit

Permalink
DOCS-3159 - added mechanism option to db.auth() for 2.6 change.
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Kleinman <[email protected]>
  • Loading branch information
Michael Paik authored and Sam Kleinman committed Sep 4, 2014
1 parent 5cc630e commit 884624b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
9 changes: 9 additions & 0 deletions source/reference/method/db.auth-param.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,13 @@ name: password
type: string
position: 2
description: "Specifies the corresponding password."
---
field:
optional: true
type: param
default: MONGODB-CR
name: mechanism
type: string
position: 3
description: "Specifies the authentication mechanism used. Defaults to ``MONGODB-CR``. ``PLAIN`` is used for :doc:`SASL/LDAP authentication </tutorial/configure-ldap-sasl-openldap>`, available only in MongoDB Enterprise."
...
10 changes: 7 additions & 3 deletions source/reference/method/db.auth.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ Definition

.. include:: /reference/method/db.auth-param.rst

Alternatively, you can use :option:`mongo --username` and
:option:`--password <mongo --password>` to specify authentication
credentials.
Alternatively, you can use :option:`mongo --username`,
:option:`--password <mongo --password>`, and
:option:`--authenticationMechanism <mongo --authenticationMechanism>`
to specify authentication credentials.

:option:`--authenticationMechanism <mongo --authenticationMechanism>`
supports additional mechanisms not available when using :method:`db.auth()`.

.. |operation-name| replace:: :method:`db.auth()`
.. include:: /includes/note-auth-methods-excluded-from-shell-history.rst
Expand Down

0 comments on commit 884624b

Please sign in to comment.