summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_is_master_cmd.cpp
diff options
context:
space:
mode:
authorSpencer Jackson <spencer.jackson@mongodb.com>2018-01-12 19:11:14 -0500
committerSpencer Jackson <spencer.jackson@mongodb.com>2018-03-09 18:59:45 -0500
commit25d521ca3283fcb21e125b30403e0036d05a8338 (patch)
tree92646a5dfed1bec3ce79afce20f51beaa51fd346 /src/mongo/s/commands/cluster_is_master_cmd.cpp
parent4ef0fe789ef349307c4cffd6548dc8657059cca5 (diff)
downloadmongo-25d521ca3283fcb21e125b30403e0036d05a8338.tar.gz
SERVER-32966: Add SASL server mechanism registry
Diffstat (limited to 'src/mongo/s/commands/cluster_is_master_cmd.cpp')
-rw-r--r--src/mongo/s/commands/cluster_is_master_cmd.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/s/commands/cluster_is_master_cmd.cpp b/src/mongo/s/commands/cluster_is_master_cmd.cpp
index eaee3701cec..2b45078ab2d 100644
--- a/src/mongo/s/commands/cluster_is_master_cmd.cpp
+++ b/src/mongo/s/commands/cluster_is_master_cmd.cpp
@@ -28,7 +28,7 @@
#include "mongo/platform/basic.h"
-#include "mongo/db/auth/sasl_mechanism_advertiser.h"
+#include "mongo/db/auth/sasl_mechanism_registry.h"
#include "mongo/db/client.h"
#include "mongo/db/commands.h"
#include "mongo/db/logical_session_id.h"
@@ -133,7 +133,8 @@ public:
MessageCompressorManager::forSession(opCtx->getClient()->session())
.serverNegotiate(cmdObj, &result);
- SASLMechanismAdvertiser::advertise(opCtx, cmdObj, &result);
+ auto& saslMechanismRegistry = SASLServerMechanismRegistry::get(opCtx->getServiceContext());
+ saslMechanismRegistry.advertiseMechanismNamesForUser(opCtx, cmdObj, &result);
return true;
}