summaryrefslogtreecommitdiff
path: root/src/mongo/db/startup_warnings_common.cpp
diff options
context:
space:
mode:
authorJonathan Reams <jbreams@mongodb.com>2018-11-05 18:22:59 -0500
committerJonathan Reams <jbreams@mongodb.com>2018-11-14 16:33:12 -0500
commita8bfcc13011c5e859a10e56ce882a0d53a0a2031 (patch)
tree576413908983b0c8d3fefa644c55b414eea7409a /src/mongo/db/startup_warnings_common.cpp
parenta6a0ca1ae81b34aab14a9c9a2a3d4a6ec7be66ba (diff)
downloadmongo-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.cpp4
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;