diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2015-04-06 10:48:36 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2015-04-06 18:20:14 -0400 |
commit | 7ea3fc90c6c1f175da1e76ff79b1e6ae09377141 (patch) | |
tree | bd2f3f246c48a3a88578c3195432cb30fc3bfff2 /src/mongo/db/client.cpp | |
parent | 9e2cc1588f25f81983de48f2c69130203e325175 (diff) | |
download | mongo-7ea3fc90c6c1f175da1e76ff79b1e6ae09377141.tar.gz |
SERVER-17817 When setting up ClientBasic, get AuthorizationSession object from AuthorizationManager.
Diffstat (limited to 'src/mongo/db/client.cpp')
-rw-r--r-- | src/mongo/db/client.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/db/client.cpp b/src/mongo/db/client.cpp index b20dd87d04d..c408723d462 100644 --- a/src/mongo/db/client.cpp +++ b/src/mongo/db/client.cpp @@ -45,7 +45,6 @@ #include "mongo/db/auth/action_type.h" #include "mongo/db/auth/authorization_manager_global.h" #include "mongo/db/auth/authorization_session.h" -#include "mongo/db/auth/authz_session_external_state_d.h" #include "mongo/db/auth/privilege.h" #include "mongo/db/catalog/database_holder.h" #include "mongo/db/commands.h" @@ -96,8 +95,7 @@ namespace mongo { // Create the client obj, attach to thread Client* client = new Client(fullDesc, getGlobalServiceContext(), mp); client->setAuthorizationSession( - new AuthorizationSession( - new AuthzSessionExternalStateMongod(getGlobalAuthorizationManager()))); + getGlobalAuthorizationManager()->makeAuthorizationSession()); currentClient.reset(client); |