Class Index [+]

Quicksearch

ActiveLdap::Operations::LDIF

Public Instance Methods

dump(options={}) click to toggle source
     # File lib/active_ldap/operations.rb, line 377
377:       def dump(options={})
378:         ldif = Ldif.new
379:         options = {:base => base, :scope => scope}.merge(options)
380:         options[:connection] ||= connection
381:         options[:connection].search(options) do |dn, attributes|
382:           ldif << Ldif::Record.new(dn, attributes)
383:         end
384:         return "" if ldif.records.empty?
385:         ldif.to_s
386:       end
load(ldif, options={}) click to toggle source
     # File lib/active_ldap/operations.rb, line 396
396:       def load(ldif, options={})
397:         return if ldif.blank?
398:         Ldif.parse(ldif).each do |record|
399:           record.load(self, options)
400:         end
401:       end
to_ldif(dn, attributes) click to toggle source
     # File lib/active_ldap/operations.rb, line 392
392:       def to_ldif(dn, attributes)
393:         Ldif.new([to_ldif_record(dn, attributes)]).to_s
394:       end
to_ldif_record(dn, attributes) click to toggle source
     # File lib/active_ldap/operations.rb, line 388
388:       def to_ldif_record(dn, attributes)
389:         Ldif::Record.new(dn, attributes)
390:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.