Skip to content

Commit 38ab626

Browse files
DOCS-15627 Noted SCRAM-SHA-256 as default user auth mechanism (#4011) (#4134)
* DOCS-15627 Noted SCRAM-SHA-256 as default user auth mechanism (#4011) * Noted SCRAM-SHA-256 as default user auth mechanism * Moved default notice * Internal review feedback * Checking rendering as note * Wording clarification * External review feedback * Rendering fix
1 parent fbca40f commit 38ab626

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

source/reference/connection-string.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -994,25 +994,25 @@ credentials are authenticated against the ``admin`` database.
994994

995995
* - .. urioption:: authMechanism
996996

997-
- Specify the authentication mechanism that MongoDB will use to
998-
authenticate the connection. Possible values include:
997+
Default: SCRAM-SHA-256
998+
999+
- Specify the authentication mechanism that MongoDB uses to
1000+
authenticate the connection. If you don't specify an
1001+
``authMechanism`` but provide user credentials, MongoDB attempts
1002+
to use SCRAM-SHA-256. If this fails, it falls back to
1003+
SCRAM-SHA-1.
9991004

10001005
- :ref:`SCRAM-SHA-1 <authentication-scram-sha-1>`
10011006

1002-
- :ref:`SCRAM-SHA-256 <authentication-scram-sha-256>` (*Added in MongoDB 4.0*)
1007+
- :ref:`SCRAM-SHA-256 <authentication-scram-sha-256>`
10031008

10041009
- :ref:`MONGODB-X509 <security-auth-x509>`
10051010

10061011
- ``MONGODB-AWS`` (*Added in MongoDB 4.4*)
10071012

10081013
- :ref:`GSSAPI <security-auth-kerberos>` (Kerberos)
10091014

1010-
- :ref:`PLAIN <security-auth-ldap>` (LDAP SASL)
1011-
1012-
MongoDB 4.0 removes support for the ``MONGODB-CR``
1013-
authentication mechanism. You cannot specify ``MONGODB-CR`` as
1014-
the authentication mechanism when connecting to MongoDB 4.0+
1015-
deployments.
1015+
- :ref:`PLAIN <security-auth-ldap>` (LDAP SASL)
10161016

10171017
Only MongoDB Enterprise :binary:`~bin.mongod` and
10181018
:binary:`~bin.mongos` instances provide ``GSSAPI`` (Kerberos) and

0 commit comments

Comments
 (0)