# File lib/active_ldap/operations.rb, line 388 def dump(options={}) ldif = Ldif.new options = {:base => base, :scope => scope}.merge(options) options[:connection] ||= connection options[:connection].search(options) do |dn, attributes| ldif << Ldif::Record.new(dn, attributes) end return "" if ldif.records.empty? ldif.to_s end
# File lib/active_ldap/operations.rb, line 407 def load(ldif, options={}) return if ldif.blank? Ldif.parse(ldif).each do |record| record.load(self, options) end end
Generated with the Darkfish Rdoc Generator 2.