lib/account_manager/directory.rb
#
# Wrap Net::LDAP#open. Use the config from our file every time.
#
Wrap Net::LDAP#open. Use the config from our file every time.
Wrap Net :: LDAP#open . Use the config from our file every time .
def open
        Net::LDAP.open(
          host: conf['host'],
          port: conf['port'],
          base: conf['base']
        ) do |ldap|
          yield ldap
        end
      end
def open Net :: LDAP . open ( host : conf [ 'host' ] , port : conf [ 'port' ] , base : conf [ 'base' ] ) do | ldap | yield ldap end end
Wrap Net::LDAP#open.
Wrap Net :: LDAP#open .