added benefits of using enumerators to build the interface to your collection, namely the ability to deal with memory constraints and transparently handle errors.
We’re going to go into the deep end and talk about some more advanced uses of enumerators, as well as creating our own lazy versions of a few standard methods.
I came across a few Ruby libraries for connecting to Active Directory, but I used net-ldap gem, the environment_configurable gem and a few lines of code.