| Class | Mongo::Auth::LDAP |
| In: |
lib/mongo/auth/ldap/conversation.rb
lib/mongo/auth/ldap.rb |
| Parent: | Object |
| MECHANISM | = | 'PLAIN'.freeze |
The authentication mechinism string.
@since 2.0.0 |
| user | [R] | @return [ Mongo::Auth::User ] The user to authenticate. |
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
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