summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/authentication_commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/authentication_commands.cpp')
-rw-r--r--src/mongo/db/commands/authentication_commands.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/authentication_commands.cpp b/src/mongo/db/commands/authentication_commands.cpp
index 7264617c988..f3903628ff1 100644
--- a/src/mongo/db/commands/authentication_commands.cpp
+++ b/src/mongo/db/commands/authentication_commands.cpp
@@ -174,7 +174,7 @@ std::unique_ptr<UserRequest> getX509UserRequest(OperationContext* opCtx, const U
auto roles = std::set<RoleName>();
std::copy(peerRoles.begin(), peerRoles.end(), std::inserter(roles, roles.begin()));
- return std::make_unique<UserRequestX509>(username, roles, sslPeerInfo);
+ return uassertStatusOK(UserRequestX509::makeUserRequestX509(username, roles, sslPeerInfo));
}
constexpr auto kX509AuthenticationDisabledMessage = "x.509 authentication is disabled."_sd;