summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/authorization_manager_impl.h
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2018-12-12 15:24:36 -0500
committerBilly Donahue <billy.donahue@mongodb.com>2018-12-13 16:56:47 -0500
commite09ecae708d96a608abdbf99bc961824ed9ca0c9 (patch)
treea364c50ec45b731c3df165e0b9291d0fc610bbc0 /src/mongo/db/auth/authorization_manager_impl.h
parentb13a3dc314f05a719b45d793a6c14a9e2ac8be0c (diff)
downloadmongo-e09ecae708d96a608abdbf99bc961824ed9ca0c9.tar.gz
SERVER-38533 Convert src/mongo/db/auth/authorization_manager_impl.cpp to IDL
Diffstat (limited to 'src/mongo/db/auth/authorization_manager_impl.h')
-rw-r--r--src/mongo/db/auth/authorization_manager_impl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mongo/db/auth/authorization_manager_impl.h b/src/mongo/db/auth/authorization_manager_impl.h
index 52151139385..7d8794a5b35 100644
--- a/src/mongo/db/auth/authorization_manager_impl.h
+++ b/src/mongo/db/auth/authorization_manager_impl.h
@@ -259,4 +259,14 @@ private:
AtomicBool _inUserManagementCommand{false};
};
+
+extern int authorizationManagerCacheSize;
+
+// Hooks for IDL server parameter 'authorizationManagerPinnedUsers'.
+struct AuthorizationManagerPinnedUsersHooks {
+ static void appendBson(OperationContext* opCtx, BSONObjBuilder* out, StringData name);
+ static Status fromBson(const BSONElement& newValue);
+ static Status fromString(StringData str);
+};
+
} // namespace mongo