From 16f788f2e7a34690939ab4adfea146d81d935b9a Mon Sep 17 00:00:00 2001 From: Andreas Nilsson Date: Thu, 1 Oct 2015 15:34:00 -0400 Subject: SERVER-20110 Add configurable delay for failed authentication --- src/mongo/db/auth/sasl_options.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mongo/db/auth/sasl_options.cpp') 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) { -- cgit v1.2.1