Module | ActiveLdap::Operations::LDIF |
In: |
lib/active_ldap/operations.rb
|
# File lib/active_ldap/operations.rb, line 304 304: def dump(options={}) 305: ldifs = [] 306: options = {:base => base, :scope => scope}.merge(options) 307: options[:connection] ||= connection 308: options[:connection].search(options) do |dn, attributes| 309: ldifs << to_ldif(dn, attributes) 310: end 311: ldifs.join("\n") 312: end
# File lib/active_ldap/operations.rb, line 319 319: def load(ldifs, options={}) 320: options[:connection] ||= connection 321: options[:connection].load(ldifs) 322: end