Class: Ldap::Connection

Inherits:
LDAP::Conn
  • Object
show all
Defined in:
lib/ldap/ruby_ldap_facade.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Connection

Returns a new instance of Connection.



10
11
12
13
14
15
16
17
# File 'lib/ldap/ruby_ldap_facade.rb', line 10

def initialize(config)
  @ldap_config = config
  super(config[:host], config[:port])
  @base = config[:base]
  @port = config[:port]
  @host = config[:host]
  set_option(LDAP::LDAP_OPT_PROTOCOL_VERSION, 3)
end

Instance Attribute Details

#baseObject (readonly)

Returns the value of attribute base.



8
9
10
# File 'lib/ldap/ruby_ldap_facade.rb', line 8

def base
  @base
end

#hostObject (readonly)

Returns the value of attribute host.



8
9
10
# File 'lib/ldap/ruby_ldap_facade.rb', line 8

def host
  @host
end

#portObject (readonly)

Returns the value of attribute port.



8
9
10
# File 'lib/ldap/ruby_ldap_facade.rb', line 8

def port
  @port
end