From: Daniel Berger Date: 2007-10-23T07:08:49+09:00 Subject: Re: Problem connecting with ruby-net-ldap - Net::BER::BerError On Oct 22, 3:55 pm, "Francis Cianfrocca" wrote: > On 10/22/07, Daniel Berger wrote: > > > > > Hi all, > > > Ruby 1.8.6 > > Windows XP Pro > > ruby-net-ldap 0.0.4 > > > I'm getting a strange error when I try this simple script, where > > LDAP_SERVER is a 3rd party ldap server: > > > ldap = Net::LDAP.new(:host => LDAP_SERVER, :port => 9999) > > ldap.bind(:dn => 'cn=Admin', :password => 'xxx') > > ldap.unbind > > Try this instead: > > ldap.bind(:method=>:simple, :dn => 'cn=Admin', :password => 'xxx') Ok, so it seems the bind did work. But now I get this: user.rb:28: undefined method `unbind' for # (NoMethodError) Strange. Any ideas? Regards, Dan