| Class | LDAP::Entry |
| In: |
lib/ldap/ldif.rb
|
| Parent: | Object |
Convert an LDAP::Entry to LDIF.
# 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