summaryrefslogtreecommitdiff
path: root/src/mongo/db/startup_warnings_common.cpp
diff options
context:
space:
mode:
authorAndreas Nilsson <andreas.nilsson@mongodb.com>2016-04-20 19:28:03 -0400
committerAndreas Nilsson <andreas.nilsson@mongodb.com>2016-04-20 19:28:41 -0400
commit0b965868280da1f90addd8310eead9cfc40bb382 (patch)
treef114de570d98f181cdb09c75368a3a5e334fa11d /src/mongo/db/startup_warnings_common.cpp
parent6a53327c72574fcb1a560c8571e67da2c5dd3e19 (diff)
downloadmongo-0b965868280da1f90addd8310eead9cfc40bb382.tar.gz
SERVER-23838 Disable warnings for no access control and no bind_ip
Diffstat (limited to 'src/mongo/db/startup_warnings_common.cpp')
-rw-r--r--src/mongo/db/startup_warnings_common.cpp49
1 files changed, 25 insertions, 24 deletions
diff --git a/src/mongo/db/startup_warnings_common.cpp b/src/mongo/db/startup_warnings_common.cpp
index e3010bcb0a9..d4a7944ee66 100644
--- a/src/mongo/db/startup_warnings_common.cpp
+++ b/src/mongo/db/startup_warnings_common.cpp
@@ -74,30 +74,31 @@ void logCommonStartupWarnings(const ServerGlobalParams& serverParams) {
warned = true;
}
- if (serverParams.authState == ServerGlobalParams::AuthState::kUndefined) {
- log() << startupWarningsLog;
- if (serverParams.bind_ip.empty()) {
- log() << "** WARNING: Insecure configuration, access control is not "
- "enabled and no --bind_ip has been specified." << startupWarningsLog;
- log() << "** Read and write access to data and configuration is "
- "unrestricted, " << startupWarningsLog;
- log() << "** and the server listens on all available network interfaces."
- << startupWarningsLog;
- } else {
- log() << "** WARNING: Access control is not enabled for the database."
- << startupWarningsLog;
- log() << "** Read and write access to data and configuration is "
- "unrestricted." << startupWarningsLog;
- }
- warned = true;
- } else if (serverParams.bind_ip.empty()) {
- log() << startupWarningsLog;
- log() << "** WARNING: The server was started without specifying a "
- "--bind_ip " << startupWarningsLog;
- log() << "** and listens for connections on all available "
- "network interfaces." << startupWarningsLog;
- warned = true;
- }
+ // SERVER-23838 Disable warnings for no access control enabled and no bind_ip
+ // if (serverParams.authState == ServerGlobalParams::AuthState::kUndefined) {
+ // log() << startupWarningsLog;
+ // if (serverParams.bind_ip.empty()) {
+ // log() << "** WARNING: Insecure configuration, access control is not "
+ // "enabled and no --bind_ip has been specified." << startupWarningsLog;
+ // log() << "** Read and write access to data and configuration is "
+ // "unrestricted, " << startupWarningsLog;
+ // log() << "** and the server listens on all available network interfaces."
+ // << startupWarningsLog;
+ // } else {
+ // log() << "** WARNING: Access control is not enabled for the database."
+ // << startupWarningsLog;
+ // log() << "** Read and write access to data and configuration is "
+ // "unrestricted." << startupWarningsLog;
+ // }
+ // warned = true;
+ // } else if (serverParams.bind_ip.empty()) {
+ // log() << startupWarningsLog;
+ // log() << "** WARNING: The server was started without specifying a "
+ // "--bind_ip " << startupWarningsLog;
+ // log() << "** and listens for connections on all available "
+ // "network interfaces." << startupWarningsLog;
+ // warned = true;
+ // }
const bool is32bit = sizeof(int*) == 4;
if (is32bit) {