summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/authz_manager_external_state_s.cpp
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2015-04-06 10:48:36 -0400
committerAndy Schwerin <schwerin@mongodb.com>2015-04-06 18:20:14 -0400
commit7ea3fc90c6c1f175da1e76ff79b1e6ae09377141 (patch)
treebd2f3f246c48a3a88578c3195432cb30fc3bfff2 /src/mongo/db/auth/authz_manager_external_state_s.cpp
parent9e2cc1588f25f81983de48f2c69130203e325175 (diff)
downloadmongo-7ea3fc90c6c1f175da1e76ff79b1e6ae09377141.tar.gz
SERVER-17817 When setting up ClientBasic, get AuthorizationSession object from AuthorizationManager.
Diffstat (limited to 'src/mongo/db/auth/authz_manager_external_state_s.cpp')
-rw-r--r--src/mongo/db/auth/authz_manager_external_state_s.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/db/auth/authz_manager_external_state_s.cpp b/src/mongo/db/auth/authz_manager_external_state_s.cpp
index 56b485c16f4..4e9a204cbf8 100644
--- a/src/mongo/db/auth/authz_manager_external_state_s.cpp
+++ b/src/mongo/db/auth/authz_manager_external_state_s.cpp
@@ -39,6 +39,7 @@
#include "mongo/client/dbclientinterface.h"
#include "mongo/db/auth/authorization_manager.h"
#include "mongo/db/auth/authorization_manager_global.h"
+#include "mongo/db/auth/authz_session_external_state_s.h"
#include "mongo/db/auth/user_name.h"
#include "mongo/db/jsobj.h"
#include "mongo/s/catalog/catalog_manager.h"
@@ -46,6 +47,7 @@
#include "mongo/s/distlock.h"
#include "mongo/s/grid.h"
#include "mongo/s/write_ops/batched_command_response.h"
+#include "mongo/stdx/memory.h"
#include "mongo/util/assert_util.h"
#include "mongo/util/log.h"
#include "mongo/util/mongoutils/str.h"
@@ -112,6 +114,13 @@ namespace {
return Status::OK();
}
+ std::unique_ptr<AuthzSessionExternalState>
+ AuthzManagerExternalStateMongos::makeAuthzSessionExternalState(
+ AuthorizationManager* authzManager) {
+
+ return stdx::make_unique<AuthzSessionExternalStateMongos>(authzManager);
+ }
+
Status AuthzManagerExternalStateMongos::getStoredAuthorizationVersion(
OperationContext* txn, int* outVersion) {
try {