Class Mongo::Auth::LDAP
In: lib/mongo/auth/ldap/conversation.rb
lib/mongo/auth/ldap.rb
Parent: Object

Defines behavior for LDAP Proxy authentication.

@since 2.0.0

Methods

login   new  

Classes and Modules

Class Mongo::Auth::LDAP::Conversation

Constants

MECHANISM = 'PLAIN'.freeze   The authentication mechinism string.

@since 2.0.0

Attributes

user  [R]  @return [ Mongo::Auth::User ] The user to authenticate.

Public Class methods

Instantiate a new authenticator.

@example Create the authenticator.

  Mongo::Auth::LDAP.new(user)

@param [ Mongo::Auth::User ] user The user to authenticate.

@since 2.0.0

Public Instance methods

Log the user in on the given connection.

@example Log the user in.

  user.login(connection)

@param [ Mongo::Connection ] connection The connection to log into.

  on.

@return [ Protocol::Message ] The authentication response.

@since 2.0.0

[Validate]