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