diff options
| author | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-11 15:07:35 -0300 |
|---|---|---|
| committer | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-11 15:07:35 -0300 |
| commit | 4cb8841196d0625dfa3825aa326f071cd27c7b8b (patch) | |
| tree | 1682a647d4463397c119183369ae6f750d5fdcff /src/mongo/client/authenticate.h | |
| parent | aa03c6362cbaa767638e6eed9b031d86dd2643d1 (diff) | |
| parent | 8f0827553e09872941945a093b647a4211a9db7f (diff) | |
Update upstream source from tag 'upstream/6.0.0'master
Update to upstream version '6.0.0'
with Debian dir 5604a80ec1c96ca76f25f40d78e6ef855abec322
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 1aac7719f00..7b841b2ee84 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 a "hello" will be called to negotiate + * (e.g. SCRAM-SHA-256). If it is boost::none, then an isMaster 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 a "hello" exchange to negotiate a SASL mechanism for authentication. + * Run an isMaster 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 "hello" request - * based on a given URI. + * Constructs a "speculativeAuthenticate" or "speculativeSaslStart" + * payload for an isMaster request based on a given URI. */ -SpeculativeAuthType speculateAuth(BSONObjBuilder* helloRequestBuilder, +SpeculativeAuthType speculateAuth(BSONObjBuilder* isMasterRequest, const MongoURI& uri, std::shared_ptr<SaslClientSession>* saslClientSession); /** - * Constructs a "speculativeAuthenticate" or "speculativeSaslStart" payload for an "hello" request - * using internal (intracluster) authentication. + * Constructs a "speculativeAuthenticate" or "speculativeSaslStart" + * payload for an isMaster request using internal (intracluster) authentication. */ SpeculativeAuthType speculateInternalAuth(const HostAndPort& remoteHost, - BSONObjBuilder* helloRequestBuilder, + BSONObjBuilder* isMasterRequest, std::shared_ptr<SaslClientSession>* saslClientSession); } // namespace auth |
