summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/authorization_manager_global.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-03-25 17:06:40 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-03-26 14:31:11 -0400
commit73f7b64e15e7659be93f0add4f3c929e22b1b79d (patch)
tree9c9410c4616a394c1dfa1fe41adf28f0ed4309c3 /src/mongo/db/auth/authorization_manager_global.cpp
parent8a805598bbcb2ac20c345e0734c9fbd4c4722cb0 (diff)
downloadmongo-73f7b64e15e7659be93f0add4f3c929e22b1b79d.tar.gz
SERVER-17496 Move sharding-specific auth code out of client
Diffstat (limited to 'src/mongo/db/auth/authorization_manager_global.cpp')
-rw-r--r--src/mongo/db/auth/authorization_manager_global.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/auth/authorization_manager_global.cpp b/src/mongo/db/auth/authorization_manager_global.cpp
index 5e6c680cd16..91ccec7ba0d 100644
--- a/src/mongo/db/auth/authorization_manager_global.cpp
+++ b/src/mongo/db/auth/authorization_manager_global.cpp
@@ -30,7 +30,6 @@
#include "mongo/base/disallow_copying.h"
#include "mongo/base/init.h"
-#include "mongo/client/auth_helpers.h"
#include "mongo/db/auth/authorization_manager.h"
#include "mongo/db/auth/authorization_manager_global.h"
#include "mongo/db/server_parameters.h"
@@ -53,7 +52,7 @@ namespace {
MONGO_NO_PREREQUISITES,
("BeginStartupOptionParsing"))(InitializerContext*) {
new AuthzVersionParameter(ServerParameterSet::getGlobal(),
- auth::schemaVersionServerParameter);
+ authSchemaVersionServerParameter);
return Status::OK();
}
@@ -75,8 +74,11 @@ namespace {
Status AuthzVersionParameter::setFromString(const std::string& newValueString) {
return Status(ErrorCodes::InternalError, "set called on unsettable server parameter");
}
+
} // namespace
+ const std::string authSchemaVersionServerParameter = "authSchemaVersion";
+
void setGlobalAuthorizationManager(AuthorizationManager* authManager) {
fassert(16841, globalAuthManager == NULL);
globalAuthManager = authManager;