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 528
528:     def to_ldif
529:       ldif = "dn: %s\n" % get_dn
530: 
531:       get_attributes.each do |attr|
532:         get_values( attr ).each do |val|
533:           ldif << LDIF.to_ldif( attr, [ val ] )
534:         end
535:       end
536: 
537:       LDIF::Entry.new( ldif )
538:     end
to_s()

Alias for to_ldif

[Validate]