From: Francis Cianfrocca Date: 2007-10-23T05:00:07+09:00 Subject: Re: Problem connecting with ruby-net-ldap - Net::BER::BerError ------=_Part_9152_30919385.1193083192033 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 > > /lib/ruby/gems/1.8/gems/ruby-net-ldap-0.0.4/lib/net/ber.rb:117:in > `read_ber': unsupported object type: class=contextspecific, > encoding=primitive, tag=7 (Net::BER::BerError) > from C:/ruby/lib/ruby/gems/1.8/gems/ruby-net-ldap-0.0.4/lib/net/ > ber.rb:112:in `read_ber' > from C:/ruby/lib/ruby/gems/1.8/gems/ruby-net-ldap-0.0.4/lib/net/ > ldap.rb:1104:in `bind' > from C:/ruby/lib/ruby/gems/1.8/gems/ruby-net-ldap-0.0.4/lib/net/ > ldap.rb:701:in `bind' > from user.rb:26 Dan, try syncing to the head revision of the library, there are a handful of changes not in the current release. If that doesn't solve the problem, then I'll look into it more closely for you. ------=_Part_9152_30919385.1193083192033--