Defect #4824
closed
Unable to connect (can't convert Net::LDAP::LdapError into String)
Added by Fritz s almost 15 years ago.
Updated almost 13 years ago.
Description
I have upgraded to the latest version of redmine and have the current version of ruby installed
[root@systems3 log]# gem list --local
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
fastthread (1.0.7)
mysql (2.8.1)
passenger (2.2.9)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
[root@systems3 log]# ruby -v
ruby 1.9.1p376 (2009-12-07 revision 26041) [x86_64-linux]
[root@systems3 log]#
everything seem to be in order, but i can no longer login to redmine with LDAP authentication...
i get "Unable to connect (can't convert Net::LDAP::LdapError into String)" error.
Any ideas?
There is nothing wrong with my ldap servers, and DNS is resolving correctly on my redmine box (systems3)
- Category changed from LDAP to Ruby support
- Priority changed from Urgent to Normal
Redmine is not yet compatible with ruby1.9. As stated in RedmineInstall, you need 1.8.6 or 1.8.7.
But please attach the error stack so we can have a look at it.
Hi Jean-Philippe,
I could not find anything in the httpd/passenger error logs, or the redmine error logs (REDMINEDIR/logs)
seems like whatever the issue is, its not dumping to the standard error logs.
I did downgrade to 1.8.7 and everything is fine now...
http://rubyforge.org/tracker/index.php?func=detail&aid=24494&group_id=143&atid=631
This seems to be a fix:
I pulled the SVN sources in case it had already been fixed, but it was still failing. The problem stems from two places
in ber.rb:
1) All IO.getc calls need to be replaced with IO.getbyte
2) In 'to_ber_seq_internal', the code "s = self.to_s" no longer works, as Array#to_s has changed to pretty-print
the array contents.
Change self.to_s to self.join
The project otherwise seems to be abandoned - no updates since 2006
- Target version set to 1.4.0
Solved in ChiliProject by upgrading vendored ruby-net-ldap
(which is not maintained anymore) to net-ldap
.
- Status changed from New to Closed
- Assignee set to Jean-Philippe Lang
- Resolution set to Fixed
Also available in: Atom
PDF