In Files

Parent

Methods

LDAP::Entry

Public Instance Methods

to_ldif() click to toggle source

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
Also aliased as: to_s
to_s() click to toggle source
Alias for: to_ldif

[Validate]

Generated with the Darkfish Rdoc Generator 2.