diff options
author | Spencer T Brody <spencer@10gen.com> | 2013-05-31 14:45:59 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2013-05-31 17:32:48 -0400 |
commit | 661a68e0bd5d9679afa6a1fc9f371bb17a15129e (patch) | |
tree | 819251c6300f544d007399f5e98dae88e3ff3ec7 /src/mongo/db/auth/authz_session_external_state_server_common.cpp | |
parent | ed8e8bde125c38db215e1fe5dfbdc2ad560ced4e (diff) | |
download | mongo-661a68e0bd5d9679afa6a1fc9f371bb17a15129e.tar.gz |
Add pointer to AuthorizationManager to AuthzSessionExternalState
Diffstat (limited to 'src/mongo/db/auth/authz_session_external_state_server_common.cpp')
-rw-r--r-- | src/mongo/db/auth/authz_session_external_state_server_common.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/auth/authz_session_external_state_server_common.cpp b/src/mongo/db/auth/authz_session_external_state_server_common.cpp index 200eeb6f0e5..7f75bae23aa 100644 --- a/src/mongo/db/auth/authz_session_external_state_server_common.cpp +++ b/src/mongo/db/auth/authz_session_external_state_server_common.cpp @@ -31,8 +31,10 @@ namespace { // NOTE: we default _allowLocalhost to true under the assumption that _checkShouldAllowLocalhost // will always be called before any calls to shouldIgnoreAuthChecks. If this is not the case, // it could cause a security hole. - AuthzSessionExternalStateServerCommon::AuthzSessionExternalStateServerCommon() : - _allowLocalhost(true) {} + AuthzSessionExternalStateServerCommon::AuthzSessionExternalStateServerCommon( + AuthorizationManager* authzManager) : + AuthzSessionExternalState(authzManager), + _allowLocalhost(true) {} AuthzSessionExternalStateServerCommon::~AuthzSessionExternalStateServerCommon() {} void AuthzSessionExternalStateServerCommon::_checkShouldAllowLocalhost() { |