From: Francis Cianfrocca Date: 2006-08-12T10:19:30+09:00 Subject: Re: LDAP ------=_Part_140177_20491189.1155345567392 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 8/11/06, barjunk wrote: > > Are folks just using net/ldap or are there some other ldap libraries > that folks prefer? > > What I'd like is to be able to bind to the server then make multiple > queries, modifications, etc. > > Thanks for any guidance. > > Mike B. > > > Get Net::LDAP and read the Rdoc for Net::LDAP#open. As Austin said, this library is very disciplined (and documented) about how it uses the network (unlike the native-C libraries), and it's pure Ruby- no compiler needed on any platform. To your specific point, you can specify connection and authentication parameters to Net::LDAP#open, and then pass it a Ruby block. The #open call will pass a Net::LDAP object to your block, and you can make any number of LDAP calls on the object. All calls inside the block will take place on the same network connection to the server, and the authentication (binding) will be done automatically. If you have questions or need support, post to this list. Good luck. ------=_Part_140177_20491189.1155345567392--