diff options
author | Spencer Jackson <spencer.jackson@mongodb.com> | 2018-01-30 17:42:10 -0500 |
---|---|---|
committer | Spencer Jackson <spencer.jackson@mongodb.com> | 2018-02-02 16:44:37 -0500 |
commit | b40c004eec8e8083cf9b4d6a8c614865dd438619 (patch) | |
tree | f79b5cceb1427dd0e8d01f02a7b31d4d7211b543 /src/mongo/s/commands/cluster_is_master_cmd.cpp | |
parent | 481b4de3a1f578b4770a474aaf563c3b49ecaec5 (diff) | |
download | mongo-b40c004eec8e8083cf9b4d6a8c614865dd438619.tar.gz |
SERVER-32965: Expose per-user SASL mechanism negotiation via isMaster
Diffstat (limited to 'src/mongo/s/commands/cluster_is_master_cmd.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_is_master_cmd.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/s/commands/cluster_is_master_cmd.cpp b/src/mongo/s/commands/cluster_is_master_cmd.cpp index 441648bf7e9..531f758859f 100644 --- a/src/mongo/s/commands/cluster_is_master_cmd.cpp +++ b/src/mongo/s/commands/cluster_is_master_cmd.cpp @@ -28,6 +28,7 @@ #include "mongo/platform/basic.h" +#include "mongo/db/auth/sasl_mechanism_advertiser.h" #include "mongo/db/client.h" #include "mongo/db/commands.h" #include "mongo/db/logical_session_id.h" @@ -132,6 +133,8 @@ public: MessageCompressorManager::forSession(opCtx->getClient()->session()) .serverNegotiate(cmdObj, &result); + SASLMechanismAdvertiser::advertise(opCtx, cmdObj, &result); + return true; } |