lib/account_manager/directory.rb
#
# Wrap Net::LDAP#open, bind as admin, then execute the block in the
# context of the Net::LDAP#open block. Returns the return value of the
# block.
#
Wrap Net::LDAP#open, bind as admin, then execute the block in the
context of the Net::LDAP#open block. Returns the return value of the
block.
Wrap Net :: LDAP#open bind as admin then execute the block in the context of the Net :: LDAP#open block . Returns the return value of the block .
def open_as_admin
        open_as_dn conf['admin_bind_dn'], conf['admin_password'] do |ldap|
          yield ldap
        end
      end
def open_as_admin open_as_dn conf [ 'admin_bind_dn' ] , conf [ 'admin_password' ] do | ldap | yield ldap end end
Wrap Net::LDAP#open, bind as admin, then execute the block in the
context of the Net::LDAP#open block.
Wrap Net :: LDAP#open bind as admin then execute the block in the context of the Net :: LDAP#open block .