lib/account_manager/directory.rb
#
# Wrap Net::LDAP#open. Open as the given dn and process the block.
#
Wrap Net::LDAP#open. Open as the given dn and process the block.
Wrap Net :: LDAP#open . Open as the given dn and process the block .
def open_as_dn(dn, password)
        open do |ldap|
          ldap.auth dn, password
          ldap.bind
          yield ldap
        end
      end
def open_as_dn ( dn , password ) open do | ldap | ldap . auth dn , password ldap . bind yield ldap end end
Wrap Net::LDAP#open.
Wrap Net :: LDAP#open .
dn
<not_specific>
password
<not_specific>