summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/authz_manager_external_state.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/auth/authz_manager_external_state.h')
-rw-r--r--src/mongo/db/auth/authz_manager_external_state.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mongo/db/auth/authz_manager_external_state.h b/src/mongo/db/auth/authz_manager_external_state.h
index f3d2cc721c6..18277c272b2 100644
--- a/src/mongo/db/auth/authz_manager_external_state.h
+++ b/src/mongo/db/auth/authz_manager_external_state.h
@@ -65,7 +65,7 @@ public:
* calling other methods. Object may not be used after this method returns something other
* than Status::OK().
*/
- virtual Status initialize(OperationContext* txn) = 0;
+ virtual Status initialize(OperationContext* opCtx) = 0;
/**
* Creates an external state manipulator for an AuthorizationSession whose
@@ -78,7 +78,7 @@ public:
* Retrieves the schema version of the persistent data describing users and roles.
* Will leave *outVersion unmodified on non-OK status return values.
*/
- virtual Status getStoredAuthorizationVersion(OperationContext* txn, int* outVersion) = 0;
+ virtual Status getStoredAuthorizationVersion(OperationContext* opCtx, int* outVersion) = 0;
/**
* Writes into "result" a document describing the named user and returns Status::OK(). The
@@ -91,7 +91,7 @@ public:
*
* If the user does not exist, returns ErrorCodes::UserNotFound.
*/
- virtual Status getUserDescription(OperationContext* txn,
+ virtual Status getUserDescription(OperationContext* opCtx,
const UserName& userName,
BSONObj* result) = 0;
@@ -109,7 +109,7 @@ public:
*
* If the role does not exist, returns ErrorCodes::RoleNotFound.
*/
- virtual Status getRoleDescription(OperationContext* txn,
+ virtual Status getRoleDescription(OperationContext* opCtx,
const RoleName& roleName,
PrivilegeFormat showPrivileges,
BSONObj* result) = 0;
@@ -127,7 +127,7 @@ public:
* inconsistencies.
*/
- virtual Status getRolesDescription(OperationContext* txn,
+ virtual Status getRolesDescription(OperationContext* opCtx,
const std::vector<RoleName>& roles,
PrivilegeFormat showPrivileges,
BSONObj* result) = 0;
@@ -144,7 +144,7 @@ public:
* some of the information in a given role description is inconsistent, the document will
* contain a "warnings" array, with std::string messages describing inconsistencies.
*/
- virtual Status getRoleDescriptionsForDB(OperationContext* txn,
+ virtual Status getRoleDescriptionsForDB(OperationContext* opCtx,
const std::string dbname,
PrivilegeFormat showPrivileges,
bool showBuiltinRoles,
@@ -153,9 +153,9 @@ public:
/**
* Returns true if there exists at least one privilege document in the system.
*/
- virtual bool hasAnyPrivilegeDocuments(OperationContext* txn) = 0;
+ virtual bool hasAnyPrivilegeDocuments(OperationContext* opCtx) = 0;
- virtual void logOp(OperationContext* txn,
+ virtual void logOp(OperationContext* opCtx,
const char* op,
const char* ns,
const BSONObj& o,
@@ -169,7 +169,7 @@ protected:
* Returns true if roles for this user were provided by the client, and can be obtained from
* the connection.
*/
- bool shouldUseRolesFromConnection(OperationContext* txn, const UserName& username);
+ bool shouldUseRolesFromConnection(OperationContext* opCtx, const UserName& username);
};
} // namespace mongo