Convert an LDAP::Entry to LDIF.
# File lib/ldap/ldif.rb, line 523 def to_ldif ldif = "dn: %s\n" % get_dn get_attributes.each do |attr| get_values( attr ).each do |val| ldif << LDIF.to_ldif( attr, [ val ] ) end end LDIF::Entry.new( ldif ) end
Generated with the Darkfish Rdoc Generator 2.