Class Index [+]

Quicksearch

ActiveLdap::Operations::LDIF

Public Instance Methods

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

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.