app/models/canvas/ldap.rb
# Returns initialized Net::LDAP client
Returns initialized Net::LDAP client
Returns initialized Net :: LDAP client
def client
      params = {
        :host => Settings.ldap.host,
        :port => Settings.ldap.port,
        :encryption => { :method => :simple_tls },
        :auth => {
          :method => :simple,
          :username => Settings.ldap.application_bind,
          :password => Settings.ldap.application_password
        }
      }
      Net::LDAP.new(params)
    end
def client params = { :host => Settings . ldap . host , :port => Settings . ldap . port , :encryption => { :method => :simple_tls } , :auth => { :method => :simple , :username => Settings . ldap . application_bind , :password => Settings . ldap . application_password } } Net :: LDAP . new ( params ) end
Returns initialized Net::LDAP client
Returns initialized Net :: LDAP client