Class: LDAP::Entry

### Home Classes Methods

### In Files

- lib/ldap/ldif.rb

### Parent

Object

### Methods

- #to_ldif
- #to_s

### Class/Module Index

Quicksearch

- LDAP
- LDAP::Conn
- LDAP::Control
- LDAP::Entry
- LDAP::LDIF
- LDAP::LDIF::Entry
- LDAP::LDIF::LDIFError
- LDAP::LDIF::Mod
- LDAP::Mod
- LDAP::Record
- LDAP::Schema

No matching classes.

# 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.