Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: James Hunt
RE: ldap.bind hangs indefinitely [ reply ]  
2008-01-07 16:00
What LDAP backend are you accessing?

If you are accessing Active Directory 2k3, I would suggest reformatting your CORP\login to login@domain.com, assuming that domain.com is the DNS equivalent of the CORP domain.

By: Brad Hubbard
ldap.bind hangs indefinitely [ reply ]  
2008-01-04 03:02
I can get ldap.bind to return true if I have a properly specified DOMAIN\username and a valid password. However, it never returns "false" if I give it bad information. It just hangs, and causes the entire rails app to hang. Any guess why this might be?

ldap_con = Net::LDAP.new( {:host => 'corp.domain.com', :port => 389, :auth => { :method => :simple, :username => 'CORP\login', :password => 'password' }} )
ldap_con.bind

(HANGS PERMANENTLY)