From: Francis Cianfrocca Date: 2007-10-23T21:33:01+09:00 Subject: Re: Problem connecting with ruby-net-ldap - Net::BER::BerError ------=_Part_384_8182102.1193142780153 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 10/22/07, Daniel Berger wrote: > > > Ok, so it seems the bind did work. But now I get this: > > user.rb:28: undefined method `unbind' for # > (NoMethodError) > > Strange. Any ideas? There is no unbind method. You don't need it. I was a little mystified that you were having so much trouble with a simple operation that is known to work well, so I went back and checked the rdoc for Net::LDAP#bind. This is a method that is usually called implicitly by the library, such as when user code requests a search against the LDAP directory. However, there is an example in the documentation of how you can successfully use #bind without parameters. I just added an additional example to cover the case you used (in which credentials are passed to #bind as arguments). ------=_Part_384_8182102.1193142780153--