diff options
author | Jonathan Reams <jbreams@mongodb.com> | 2018-11-05 18:22:59 -0500 |
---|---|---|
committer | Jonathan Reams <jbreams@mongodb.com> | 2018-11-14 16:33:12 -0500 |
commit | a8bfcc13011c5e859a10e56ce882a0d53a0a2031 (patch) | |
tree | 576413908983b0c8d3fefa644c55b414eea7409a /src/mongo/db/startup_warnings_common.cpp | |
parent | a6a0ca1ae81b34aab14a9c9a2a3d4a6ec7be66ba (diff) | |
download | mongo-a8bfcc13011c5e859a10e56ce882a0d53a0a2031.tar.gz |
SERVER-32978 Advertise SCRAM-SHA-256 authentication for the internal user
Diffstat (limited to 'src/mongo/db/startup_warnings_common.cpp')
-rw-r--r-- | src/mongo/db/startup_warnings_common.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/startup_warnings_common.cpp b/src/mongo/db/startup_warnings_common.cpp index 938c66f1320..cfb73e01ae0 100644 --- a/src/mongo/db/startup_warnings_common.cpp +++ b/src/mongo/db/startup_warnings_common.cpp @@ -37,8 +37,8 @@ #include <boost/filesystem/operations.hpp> #include <fstream> +#include "mongo/client/authenticate.h" #include "mongo/config.h" -#include "mongo/db/auth/internal_user_auth.h" #include "mongo/db/server_options.h" #include "mongo/util/log.h" #include "mongo/util/net/ssl_options.h" @@ -137,7 +137,7 @@ void logCommonStartupWarnings(const ServerGlobalParams& serverParams) { warned = true; } - if (!getInternalUserAuthParams(1).isEmpty()) { + if (auth::hasMultipleInternalAuthKeys()) { log() << startupWarningsLog; log() << "** WARNING: Multiple keys specified in security key file. If cluster key file" << startupWarningsLog; |