Class LDAP::Entry
In: lib/ldap/ldif.rb
Parent: Object

Methods

to_ldif   to_s  

Public Instance methods

Convert an LDAP::Entry to LDIF.

[Source]

     # File lib/ldap/ldif.rb, line 526
526:     def to_ldif
527:       ldif = "dn: %s\n" % get_dn
528: 
529:       get_attributes.each do |attr|
530:         get_values( attr ).each do |val|
531:           ldif << LDIF.to_ldif( attr, [ val ] )
532:         end
533:       end
534: 
535:       LDIF::Entry.new( ldif )
536:     end
to_s()

Alias for to_ldif

[Validate]