Module: ActiveLdap::Operations::LDIF::AddRecordLoadable

Defined in:
lib/active_ldap/operations.rb

Instance Method Summary collapse

Instance Method Details

#load(operator, options) ⇒ Object



412
413
414
415
416
417
418
# File 'lib/active_ldap/operations.rb', line 412

def load(operator, options)
  entries = attributes.collect do |key, value|
    [:add, key, value]
  end
  options = {:controls => controls}.merge(options)
  operator.modify_entry(dn, entries, options)
end