File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -994,25 +994,25 @@ credentials are authenticated against the ``admin`` database.
994
994
995
995
* - .. urioption:: authMechanism
996
996
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.
999
1004
1000
1005
- :ref:`SCRAM-SHA-1 <authentication-scram-sha-1>`
1001
1006
1002
- - :ref:`SCRAM-SHA-256 <authentication-scram-sha-256>` (*Added in MongoDB 4.0*)
1007
+ - :ref:`SCRAM-SHA-256 <authentication-scram-sha-256>`
1003
1008
1004
1009
- :ref:`MONGODB-X509 <security-auth-x509>`
1005
1010
1006
1011
- ``MONGODB-AWS`` (*Added in MongoDB 4.4*)
1007
1012
1008
1013
- :ref:`GSSAPI <security-auth-kerberos>` (Kerberos)
1009
1014
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)
1016
1016
1017
1017
Only MongoDB Enterprise :binary:`~bin.mongod` and
1018
1018
:binary:`~bin.mongos` instances provide ``GSSAPI`` (Kerberos) and
You can’t perform that action at this time.
0 commit comments