Class: Net::LDAP

Inherits:
Object
  • Object
show all
Defined in:
lib/aker/ldap/authority.rb

Overview

Aker-specific extensions to net/ldap.

Instance Method Summary collapse

Instance Method Details

#authentic?(dn, password) ⇒ Boolean

Sugar for using LDAP bind to verify a password.

Parameters:

  • dn (String)

    a full distinguished name

  • password (String)

    a password to check

Returns:

  • (Boolean)

415
416
417
418
# File 'lib/aker/ldap/authority.rb', line 415

def authentic?(dn, password)
  self.authenticate(dn, password)
  self.bind
end