diff options
| author | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-14 14:26:38 -0300 |
|---|---|---|
| committer | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-14 14:26:38 -0300 |
| commit | 294bc6ecabf14c09c9bc8644704921dcf97cb44e (patch) | |
| tree | 279b1e0bab53901a1647ac63c1c724f0f789a663 /src/mongo/client/authenticate.h | |
| parent | 70be7c27a251621187a1de533462ae2bb1e3bd39 (diff) | |
| parent | 1e917fd798aa25b7066d4b414b51184f13d5a092 (diff) | |
Update upstream source from tag 'upstream/6.0.10'debian/6.0.10-1
Update to upstream version '6.0.10'
with Debian dir 2d176fa254eee97b139f712fec5709641335a8c3
Diffstat (limited to 'src/mongo/client/authenticate.h')
| -rw-r--r-- | src/mongo/client/authenticate.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mongo/client/authenticate.h b/src/mongo/client/authenticate.h index 7b841b2ee84..1aac7719f00 100644 --- a/src/mongo/client/authenticate.h +++ b/src/mongo/client/authenticate.h @@ -136,7 +136,7 @@ Future<void> authenticateClient(const BSONObj& params, * but the __system user's credentials will be filled in automatically. * * The "mechanismHint" parameter will force authentication with a specific mechanism - * (e.g. SCRAM-SHA-256). If it is boost::none, then an isMaster will be called to negotiate + * (e.g. SCRAM-SHA-256). If it is boost::none, then a "hello" will be called to negotiate * a SASL mechanism with the server. * * The "stepDownBehavior" parameter controls whether replication will kill the connection on @@ -168,7 +168,7 @@ BSONObj buildAuthParams(StringData dbname, StringData mechanism); /** - * Run an isMaster exchange to negotiate a SASL mechanism for authentication. + * Run a "hello" exchange to negotiate a SASL mechanism for authentication. */ Future<std::string> negotiateSaslMechanism(RunCommandHook runCommand, const UserName& username, @@ -195,19 +195,19 @@ enum class SpeculativeAuthType { }; /** - * Constructs a "speculativeAuthenticate" or "speculativeSaslStart" - * payload for an isMaster request based on a given URI. + * Constructs a "speculativeAuthenticate" or "speculativeSaslStart" payload for an "hello" request + * based on a given URI. */ -SpeculativeAuthType speculateAuth(BSONObjBuilder* isMasterRequest, +SpeculativeAuthType speculateAuth(BSONObjBuilder* helloRequestBuilder, const MongoURI& uri, std::shared_ptr<SaslClientSession>* saslClientSession); /** - * Constructs a "speculativeAuthenticate" or "speculativeSaslStart" - * payload for an isMaster request using internal (intracluster) authentication. + * Constructs a "speculativeAuthenticate" or "speculativeSaslStart" payload for an "hello" request + * using internal (intracluster) authentication. */ SpeculativeAuthType speculateInternalAuth(const HostAndPort& remoteHost, - BSONObjBuilder* isMasterRequest, + BSONObjBuilder* helloRequestBuilder, std::shared_ptr<SaslClientSession>* saslClientSession); } // namespace auth |
