Sha256: c81acba964bd97384f60431609e82b654c8518013cf282213f6dca96b553f0b2
Contents?: true
Size: 934 Bytes
Versions: 1
Compression:
Stored size: 934 Bytes
Contents
module Adauth # Create a connection to LDAP using Net::LDAP # # Called as: # Adauth::Connection.bind(username, password) # # class Connection # Create a connection to LDAP using Net::LDAP # # Called as: # Adauth::Connection.bind(username, password) # # def self.bind(login, pass) conn = Net::LDAP.new :host => Adauth.config.server, :port => Adauth.config.port, :base => Adauth.config.base, :auth => { :username => "#{login}@#{Adauth.config.domain}", :password => pass, :method => :simple } if conn.bind return conn else return nil end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
adauth-1.2.0 | lib/adauth/connection.rb |