Hi,
im having some trouble using net::ldap. bind doesnt return anything (not
even false)
i basically use this code:
user,psw = ''test'', ''test''
ldap = Net::LDAP.new(:host => ''myldapserverip'', :port =>
636, :base
=>''dc=ehb,dc=be'', :auth => {:method => :simple,
:username => user,
:password => psw)
if (ldap.bind) then
"Authorization Succeeded! #{ldap.get_operation_result.message}"
else
"Authorization Failed: #{ldap.get_operation_result.message}"
end
The connection to the server is alright (no ''no connection to
server''
error)
The ldap server is using ldaps, would that be the problem ?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---