summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/authz_session_external_state_server_common.cpp
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@10gen.com>2013-05-31 14:45:59 -0400
committerSpencer T Brody <spencer@10gen.com>2013-06-03 17:11:32 -0400
commite2bc8d7824b1304dd8c4bc8d30e615432e60c08a (patch)
tree8c4e8447c47713db30dc2d245fa4597b5abb0841 /src/mongo/db/auth/authz_session_external_state_server_common.cpp
parent5dd87637236aeed5d05222835231ea7ee8dd1b4c (diff)
downloadmongo-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.cpp6
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() {