SSL error

89 views
Skip to first unread message

venkata reddy

unread,
Dec 28, 2011, 5:50:45 AM12/28/11
to Ruby LDAP
1.9.2p290 :004 > ldap = Net::LDAP.new :host => 'serveriphere, :port
=> 389, :encryption => :simple_tls, :auth => {:method
=> :simple, :username => "pennywise\xxxxx", :password => "secret"}
=> #<Net::LDAP:0x00000002249af8 @host="serveriphere", @port=389,
@verbose=false, @auth={:method=>:simple, :username=>"pennywise
\xxxxx", :password=>"secret"}, @base="dc=com",
@encryption={:method=>:simple_tls}, @open_connection=nil>
1.9.2p290 :005 > if ldap.bind
1.9.2p290 :006?> puts "yes"
1.9.2p290 :007?> else
1.9.2p290 :008 > puts "no"
1.9.2p290 :009?> end
OpenSSL::SSL::SSLError: SSL_connect SYSCALL returned=5 errno=0
state=SSLv2/v3 read server hello A
from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/net-ldap-0.2.2/
lib/net/
ldap.rb:1126:in `connect'
from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/net-ldap-0.2.2/
lib/net/
ldap.rb:1126:in `wrap_with_ssl'
from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/net-ldap-0.2.2/
lib/net/
ldap.rb:1163:in `setup_encryption'
from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/net-ldap-0.2.2/
lib/net/
ldap.rb:1110:in `initialize'
from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/net-ldap-0.2.2/
lib/net/
ldap.rb:710:in `new'
from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/net-ldap-0.2.2/
lib/net/
ldap.rb:710:in `bind'
from (irb):5
from /usr/local/rvm/rubies/ruby-1.9.2-p290/bin/irb:16:in
`<main>'
Reply all
Reply to author
Forward
0 new messages