I have the following code to test authentication using ldap (i use
ruby-net-ldap extension) :

require ‘rubygems’
require ‘net/ldap’

def test
user = ‘bla’
pass = ‘bla’
ldap = :host => “”, :port => 389, :auth =>
{:method => :simple, :username => user, :password => pass}
p (ldap.bind) ? “Authorization Succeeded!” : “Authorization Failed:
end is my IP.

However I always get this error (which is originated by the ldap.bind
instruction) : “no connection to server”

Can anyone help me?



This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs