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



451
452
453
454
455
456
457
458
# File 'lib/active_ldap/operations.rb', line 451

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