summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/auth_decorations.cpp
diff options
context:
space:
mode:
authorAndreas Nilsson <andreas.nilsson@mongodb.com>2016-03-21 09:09:03 -0400
committerAndreas Nilsson <andreas.nilsson@mongodb.com>2016-03-25 12:03:17 -0400
commitef2130288e7d2c89dcd1a503dfd701263d5563fe (patch)
treecc8f912ab33bec2c4cadad84d264f8ecc03eaf81 /src/mongo/db/auth/auth_decorations.cpp
parenta1d9d2251734bc4077255ae33e17f5a210697839 (diff)
downloadmongo-ef2130288e7d2c89dcd1a503dfd701263d5563fe.tar.gz
SERVER-22708 Insecure configuration startup warnings
Diffstat (limited to 'src/mongo/db/auth/auth_decorations.cpp')
-rw-r--r--src/mongo/db/auth/auth_decorations.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/auth/auth_decorations.cpp b/src/mongo/db/auth/auth_decorations.cpp
index bc93e494ff2..2bd2264e0f9 100644
--- a/src/mongo/db/auth/auth_decorations.cpp
+++ b/src/mongo/db/auth/auth_decorations.cpp
@@ -54,7 +54,8 @@ MONGO_INITIALIZER_WITH_PREREQUISITES(CreateAuthorizationManager,
(InitializerContext* context) {
auto authzManager =
stdx::make_unique<AuthorizationManager>(AuthzManagerExternalState::create());
- authzManager->setAuthEnabled(serverGlobalParams.isAuthEnabled);
+ authzManager->setAuthEnabled(serverGlobalParams.authState ==
+ ServerGlobalParams::AuthState::kEnabled);
AuthorizationManager::set(getGlobalServiceContext(), std::move(authzManager));
return Status::OK();
}