File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -1036,26 +1036,30 @@ credentials are authenticated against the ``admin`` database.
1036
1036
1037
1037
* - .. urioption:: authMechanism
1038
1038
1039
- - Specify the authentication mechanism that MongoDB will use to
1040
- authenticate the connection. Possible values include:
1039
+ Default: SCRAM-SHA-256
1040
+
1041
+ - Specify the authentication mechanism that MongoDB uses to
1042
+ authenticate the connection. If you don't specify an
1043
+ ``authMechanism`` but provide user credentials, MongoDB attempts
1044
+ to use SCRAM-SHA-256. If this fails, it falls back to
1045
+ SCRAM-SHA-1.
1041
1046
1042
1047
- :ref:`SCRAM-SHA-1 <authentication-scram-sha-1>`
1043
1048
1044
- - :ref:`SCRAM-SHA-256 <authentication-scram-sha-256>` (*Added in MongoDB 4.0*)
1049
+ - :ref:`SCRAM-SHA-256 <authentication-scram-sha-256>`
1045
1050
1046
1051
- :ref:`MONGODB-X509 <security-auth-x509>`
1047
1052
1048
1053
- ``MONGODB-AWS`` (*Added in MongoDB 4.4*)
1049
1054
1050
1055
- :ref:`GSSAPI <security-auth-kerberos>` (Kerberos)
1051
1056
1052
- - :ref:`PLAIN <security-auth-ldap>` (LDAP SASL)
1057
+ - :ref:`PLAIN <security-auth-ldap>` (LDAP SASL)
1053
1058
1054
- MongoDB 4.0 removes support for the ``MONGODB-CR``
1055
- authentication mechanism. You cannot specify ``MONGODB-CR`` as
1056
- the authentication mechanism when connecting to MongoDB 4.0+
1057
- deployments.
1059
+ .. note::
1058
1060
1061
+
1062
+
1059
1063
Only MongoDB Enterprise :binary:`~bin.mongod` and
1060
1064
:binary:`~bin.mongos` instances provide ``GSSAPI`` (Kerberos) and
1061
1065
``PLAIN`` (LDAP) mechanisms.
You can’t perform that action at this time.
0 commit comments