Ruby/ActiveLdap provides an object oriented interface to LDAP. This library was inspired by ActiveRecord (both the concept and the library). It maps LDAP entries to Ruby objects with LDAP attribute accessors exposed as methods dynamically assigned based on your LDAP schema and each object’s objectClasses.
The latest release is 1.0.1, released on June 15, 2008 and can be found here. If you want to use an older version, don't use version 0.8.3 or 1.0.0, it contains a bugs.
Of course, you can also download from trunk.