lib/account_manager/directory.rb
#
# Wrap Net::LDAP#open. Open as the given uid (calculate the bind DN using
# the config file) and process the block.
#
Wrap Net::LDAP#open. Open as the given uid (calculate the bind DN using
the config file) and process the block.
Wrap Net :: LDAP#open . Open as the given uid ( calculate the bind DN using the config file ) and process the block .
def open_as(uid, password)
        open_as_dn bind_dn(uid), password do |ldap|
          yield ldap
        end
      end
def open_as ( uid , password ) open_as_dn bind_dn ( uid ) , password do | ldap | yield ldap end end
Wrap Net::LDAP#open.
Wrap Net :: LDAP#open .
uid
<not_specific>
password
<not_specific>