diff options
author | Andreas Nilsson <andreas.nilsson@mongodb.com> | 2016-03-21 09:09:03 -0400 |
---|---|---|
committer | Andreas Nilsson <andreas.nilsson@mongodb.com> | 2016-03-25 12:03:17 -0400 |
commit | ef2130288e7d2c89dcd1a503dfd701263d5563fe (patch) | |
tree | cc8f912ab33bec2c4cadad84d264f8ecc03eaf81 /src/mongo/db/auth/auth_decorations.cpp | |
parent | a1d9d2251734bc4077255ae33e17f5a210697839 (diff) | |
download | mongo-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.cpp | 3 |
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(); } |