Module: ActiveLdap::Operations::LDIF::ModifyRecordLoadable

Defined in:
lib/active_ldap/operations.rb

Defined Under Namespace

Modules: AddOperationModifiable, DeleteOperationModifiable, ReplaceOperationModifiable

Instance Method Summary collapse

Instance Method Details

#load(operator, options) ⇒ Object



468
469
470
471
472
473
474
475
# File 'lib/active_ldap/operations.rb', line 468

def load(operator, options)
  modify_entries = operations.inject([]) do |result, operation|
    result + operation.to_modify_entries
  end
  return if modify_entries.empty?
  operator.modify_entry(dn, modify_entries,
                        {:controls => controls}.merge(options))
end