diff options
author | Varun Ravichandran <varun.ravichandran@mongodb.com> | 2020-12-02 21:17:48 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-12-09 23:38:19 +0000 |
commit | 33afc4e43719177adac01b9f9978dd3477b37649 (patch) | |
tree | 87fd4c74396fba93f96ad69d8dbec10c930e898b /src/mongo/db/auth/sasl_scram_server_conversation.cpp | |
parent | c8520d84cc7356d1a30858092ee79de4dd6dc163 (diff) | |
download | mongo-33afc4e43719177adac01b9f9978dd3477b37649.tar.gz |
SERVER-51457: Improve log line for failed speculative auth attempts
Diffstat (limited to 'src/mongo/db/auth/sasl_scram_server_conversation.cpp')
-rw-r--r-- | src/mongo/db/auth/sasl_scram_server_conversation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/auth/sasl_scram_server_conversation.cpp b/src/mongo/db/auth/sasl_scram_server_conversation.cpp index ece08adec08..d92b4711c01 100644 --- a/src/mongo/db/auth/sasl_scram_server_conversation.cpp +++ b/src/mongo/db/auth/sasl_scram_server_conversation.cpp @@ -209,7 +209,7 @@ StatusWith<std::tuple<bool, std::string>> SaslSCRAMServerMechanism<Policy>::_fir "It is not possible to authenticate as the __system user " "on servers started without a --keyFile parameter"); } else if (scramCredentials.empty()) { - return {ErrorCodes::AuthenticationFailed, + return {ErrorCodes::MechanismUnavailable, str::stream() << "Unable to use " << Policy::getName() << " based authentication for user without any " << Policy::getName() << " credentials registered"}; |