Issue Type: Bug Bug
Affects Versions: JRuby 1.7.0
Assignee: Unassigned
Components: Core Classes/Modules, Standard Library
Created: 01/Nov/12 12:51 PM
Description:

when I go into the rails console and try to establish a connection via LDAP, I get the following error. I tested this same code in jruby-1.6 and everything seems to work fine there.

jruby-1.7.0 :001 > require 'net/ldap'
=> true
jruby-1.7.0 :002 > ldap = Net::LDAP.new
=> #<Net::LDAP:0x495dd936 @host="127.0.0.1", @auth={:method=>:anonymous}, @encryption=nil, @base="dc=com", @port=389, @verbose=false, @open_connection=nil>
jruby-1.7.0 :004 > ldap.host = 'ldap.ad.xxx.yyy'
=> "ldap.ad.xxx.yyy"
jruby-1.7.0 :006 > ldap.port = 389
=> 389
jruby-1.7.0 :007 > ldap.auth('username', 'password')
=> {:method=>:simple, :username=>"username", :password=>"password"}
jruby-1.7.0 :008 > ldap.bind
Errno::ECONNRESET: Connection reset by peer - Connection reset by peer
from org/jruby/RubyIO.java:1933:in `eof?'
from /Users/jinlee/.rvm/gems/jruby-1.7.0/gems/ruby-net-ldap-0.0.4/lib/net/ber.rb:71:in `read_ber'
from /Users/jinlee/.rvm/gems/jruby-1.7.0/gems/ruby-net-ldap-0.0.4/lib/net/ldap.rb:1104:in `bind'
from /Users/jinlee/.rvm/gems/jruby-1.7.0/gems/ruby-net-ldap-0.0.4/lib/net/ldap.rb:701:in `bind'
from (irb):8:in `evaluate'
from org/jruby/RubyKernel.java:1065:in `eval'
from org/jruby/RubyKernel.java:1390:in `loop'
from org/jruby/RubyKernel.java:1173:in `catch'
from org/jruby/RubyKernel.java:1173:in `catch'
from /Users/jinlee/.rvm/gems/jruby-1.7.0/gems/railties-3.2.8/lib/rails/commands/console.rb:47:in `start'
from /Users/jinlee/.rvm/gems/jruby-1.7.0/gems/railties-3.2.8/lib/rails/commands/console.rb:8:in `start'
from /Users/jinlee/.rvm/gems/jruby-1.7.0/gems/railties-3.2.8/lib/rails/commands.rb:41:in `(root)'
from org/jruby/RubyKernel.java:1019:in `require'
from script/rails:6:in `(root)'
jruby-1.7.0 :009 >

Environment: Mac OS X Lion, jruby-1.7.0, Ruby on Rails 3.2
Project: JRuby
Priority: Major Major
Reporter: Jin Lee
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to