Defect #608
closedRuntimeError (LdapError: no bind result):
0%
Description
I'm using LDAP authentication. I often get a failed login when trying to use ldap-based accounts, with this in the logs:
RuntimeError (LdapError: no bind result):
/app/models/auth_source_ldap.rb:55:in `authenticate'
/var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/associations/association_proxy.rb:125:in `send'
/var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/associations/association_proxy.rb:125:in `method_missing'
/app/models/user.rb:92:in `try_to_login'
/app/controllers/account_controller.rb:46:in `login'
It may be related to the following net-ldap bug:
http://rubyforge.org/tracker/index.php?func=detail&aid=7392&group_id=143&atid=631
This bug happens often enough for me that it basically makes the ldap integration unusable. I'm trying the patch listed on that page and I can report back here if it helps.
Updated by Kioma Aldecoa almost 17 years ago
I've been running with this patch for about a week and no LDAP problems. So I'd suggest using a net-ldap version with the referenced patch applied.
Updated by Jean-Philippe Lang almost 17 years ago
- Status changed from New to Closed
I couldn't reproduce this error. Anyway, I applied the patch in r1148.
Thanks for pointing out the fix.