ldap.search(base, scope, filter, attrs) { |entry|
     p entry.dn
     p entry.attrs
}

Does the above work for you?

Regards,

- Mac
-- 
Posted via http://www.ruby-forum.com/.