summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/sasl_options.cpp
diff options
context:
space:
mode:
authorAndreas Nilsson <andreas.nilsson@10gen.com>2015-10-01 15:34:00 -0400
committerAndreas Nilsson <andreas.nilsson@10gen.com>2015-10-01 15:35:20 -0400
commit16f788f2e7a34690939ab4adfea146d81d935b9a (patch)
tree167c73179e1c19331cef9c57dd896231b12bab1b /src/mongo/db/auth/sasl_options.cpp
parent27693c2c5261fbb7d848d2f1abfb33a390760773 (diff)
downloadmongo-16f788f2e7a34690939ab4adfea146d81d935b9a.tar.gz
SERVER-20110 Add configurable delay for failed authentication
Diffstat (limited to 'src/mongo/db/auth/sasl_options.cpp')
-rw-r--r--src/mongo/db/auth/sasl_options.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/auth/sasl_options.cpp b/src/mongo/db/auth/sasl_options.cpp
index e0429652d32..69bfb504e83 100644
--- a/src/mongo/db/auth/sasl_options.cpp
+++ b/src/mongo/db/auth/sasl_options.cpp
@@ -49,8 +49,12 @@ SASLGlobalParams::SASLGlobalParams() {
authenticationMechanisms.push_back("MONGODB-CR");
authenticationMechanisms.push_back("MONGODB-X509");
authenticationMechanisms.push_back("SCRAM-SHA-1");
+
// Default iteration count for SCRAM authentication.
scramIterationCount = defaultScramIterationCount;
+
+ // Default value for auth failed delay
+ authFailedDelay = 0;
}
Status addSASLOptions(moe::OptionSection* options) {