Class: Ldap::Connection
- Inherits:
-
LDAP::Conn
- Object
- LDAP::Conn
- Ldap::Connection
- Defined in:
- lib/ldap/ruby_ldap_facade.rb
Instance Attribute Summary collapse
-
#base ⇒ Object
readonly
Returns the value of attribute base.
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
Instance Method Summary collapse
-
#initialize(config) ⇒ Connection
constructor
A new instance of Connection.
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
#base ⇒ Object (readonly)
Returns the value of attribute base.
8 9 10 |
# File 'lib/ldap/ruby_ldap_facade.rb', line 8 def base @base end |
#host ⇒ Object (readonly)
Returns the value of attribute host.
8 9 10 |
# File 'lib/ldap/ruby_ldap_facade.rb', line 8 def host @host end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
8 9 10 |
# File 'lib/ldap/ruby_ldap_facade.rb', line 8 def port @port end |