diff options
author | Sara Golemon <sara.golemon@mongodb.com> | 2020-10-26 17:26:31 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-11-09 18:16:52 +0000 |
commit | 5e0d73d0d8e559e34203740af93b6ca03d573ea5 (patch) | |
tree | 3ddc4e4ddde8af5fb575ffe819d0bb4b3acee271 /src/mongo/db/auth/authorization_manager_impl.cpp | |
parent | fa826f6a5b77eb059fe03d411276c3ee7eb303d5 (diff) | |
download | mongo-5e0d73d0d8e559e34203740af93b6ca03d573ea5.tar.gz |
SERVER-51864 IDLify usersInfo and rolesInfo commands
Diffstat (limited to 'src/mongo/db/auth/authorization_manager_impl.cpp')
-rw-r--r-- | src/mongo/db/auth/authorization_manager_impl.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/mongo/db/auth/authorization_manager_impl.cpp b/src/mongo/db/auth/authorization_manager_impl.cpp index 66084c34f87..50401c7809a 100644 --- a/src/mongo/db/auth/authorization_manager_impl.cpp +++ b/src/mongo/db/auth/authorization_manager_impl.cpp @@ -395,18 +395,27 @@ Status AuthorizationManagerImpl::getRolesDescription(OperationContext* opCtx, const std::vector<RoleName>& roleName, PrivilegeFormat privileges, AuthenticationRestrictionsFormat restrictions, - BSONObj* result) { + std::vector<BSONObj>* result) { return _externalState->getRolesDescription(opCtx, roleName, privileges, restrictions, result); } +Status AuthorizationManagerImpl::getRolesAsUserFragment( + OperationContext* opCtx, + const std::vector<RoleName>& roleName, + AuthenticationRestrictionsFormat restrictions, + BSONObj* result) { + return _externalState->getRolesAsUserFragment(opCtx, roleName, restrictions, result); +} + + Status AuthorizationManagerImpl::getRoleDescriptionsForDB( OperationContext* opCtx, StringData dbname, PrivilegeFormat privileges, AuthenticationRestrictionsFormat restrictions, bool showBuiltinRoles, - BSONArrayBuilder* result) { + std::vector<BSONObj>* result) { return _externalState->getRoleDescriptionsForDB( opCtx, dbname, privileges, restrictions, showBuiltinRoles, result); } |