diff options
author | Spencer T Brody <spencer@10gen.com> | 2013-05-31 14:45:59 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2013-06-03 17:11:32 -0400 |
commit | e2bc8d7824b1304dd8c4bc8d30e615432e60c08a (patch) | |
tree | 8c4e8447c47713db30dc2d245fa4597b5abb0841 /src/mongo/db/auth/authz_session_external_state_server_common.cpp | |
parent | 5dd87637236aeed5d05222835231ea7ee8dd1b4c (diff) | |
download | mongo-e2bc8d7824b1304dd8c4bc8d30e615432e60c08a.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() { |