Class: Mongo::Auth::LDAP::Conversation Private
Do not use. This class is for internal use only.
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
|
|
Instance Chain:
|
|
Inherits: |
Mongo::Auth::ConversationBase
|
Defined in: | lib/mongo/auth/ldap/conversation.rb |
Overview
Defines behavior around a single PLAIN conversation between the client and server.
Constant Summary
-
LOGIN =
The login message.
{ saslStart: 1, autoAuthorize: 1 }.freeze
Class Method Summary
::Mongo::Auth::ConversationBase
- Inherited
.new | Create the new conversation. |
Instance Attribute Summary
::Mongo::Auth::ConversationBase
- Inherited
Instance Method Summary
-
#start(connection) ⇒ Protocol::Query
Internal use only
Start the PLAIN conversation.
- #payload private Internal use only
::Mongo::Auth::ConversationBase
- Inherited
#build_message, | |
#speculative_auth_document | Returns the hash to provide to the server in the handshake as value of the speculativeAuthenticate key. |
#validate_external_auth_source |
Instance Method Details
#payload (private)
# File 'lib/mongo/auth/ldap/conversation.rb', line 51
def payload BSON::Binary.new("\x00#{user.name}\x00#{user.password}") end
#start(connection) ⇒ Protocol::Query
Start the PLAIN conversation. This returns the first message that needs to be sent to the server.