summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/sasl_options.cpp
diff options
context:
space:
mode:
authorSara Golemon <sara.golemon@mongodb.com>2018-02-06 12:06:53 -0500
committerSara Golemon <sara.golemon@mongodb.com>2018-02-10 10:57:01 -0500
commitc4c4bef71ecd64db91e1252200d82a2f5c265cc6 (patch)
tree37dfd1305a018c1b535ce12a0fab506bc6e15c38 /src/mongo/db/auth/sasl_options.cpp
parent17b4094c4d781ffd486b27869f46eea706e490af (diff)
downloadmongo-c4c4bef71ecd64db91e1252200d82a2f5c265cc6.tar.gz
SERVER-32973 Enable SCRAM-SHA-256 authentication
Diffstat (limited to 'src/mongo/db/auth/sasl_options.cpp')
-rw-r--r--src/mongo/db/auth/sasl_options.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/auth/sasl_options.cpp b/src/mongo/db/auth/sasl_options.cpp
index 5e48aaaf1e8..f35825c6d14 100644
--- a/src/mongo/db/auth/sasl_options.cpp
+++ b/src/mongo/db/auth/sasl_options.cpp
@@ -56,6 +56,7 @@ SASLGlobalParams::SASLGlobalParams() {
// Authentication mechanisms supported by default.
authenticationMechanisms.push_back("MONGODB-X509");
authenticationMechanisms.push_back("SCRAM-SHA-1");
+ authenticationMechanisms.push_back("SCRAM-SHA-256");
// Default iteration count for SCRAM authentication.
scramSHA1IterationCount.store(defaultScramSHA1IterationCount);