Giter Club home page Giter Club logo

Comments (15)

thorin avatar thorin commented on August 29, 2024

That's a know issue on the net-ldap library (ruby-ldap/ruby-net-ldap#44).
I believe it is fixed on version 0.4.0 of the library.

You can try changing the redmine's Gemfile with the following, do a bundle update and try it again:

Optional gem for LDAP authentication

group :ldap do
gem "net-ldap", "~> 0.4.0", :git => "https://github.com/ruby-ldap/ruby-net-ldap.git"
end

If it fixes the problem you can try suggesting the upgrade at redmine.org.

I've done a quick test on my redmine server and it seems like this version doesn't break the normal ldap authentication.

from redmine_ldap_sync.

majkinetor avatar majkinetor commented on August 29, 2024

Thanks a lot for quick reply.
That did the trick!

I couldn't be able to start the Redmine after that tho, because Bundler complained:

/var/lib/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/source.rb:801:
in `rescue in load_spec_files': 
  https://github.com/ruby-ldap/ruby-net-ldap.git (at master) is not checked out. 
Please run `bundle install` (Bundler::GitError)

I found this alternative source:
http://rubygems.org/gems/net-ldap-1

which works OK!

Thanks a bunch!
You did a great tool

from redmine_ldap_sync.

cforce avatar cforce commented on August 29, 2024

Is this change now pulled into master?

from redmine_ldap_sync.

thorin avatar thorin commented on August 29, 2024

There was no change on the plugin.

You need to update Gemfile on redmine. I can't include the net-ldap-1 v0.4.0 on the plugin.
A ticket has to be opened on redmine for this change to be permanent.

from redmine_ldap_sync.

cforce avatar cforce commented on August 29, 2024

Is there a redmine issue i can vote to update net-ldap. I have same problem for novell ldap server.

from redmine_ldap_sync.

cforce avatar cforce commented on August 29, 2024

Why can't u add GemFile here ?

source :rubygems
gem "net-ldap-1", "~>v0.4.0"

from redmine_ldap_sync.

thorin avatar thorin commented on August 29, 2024

Actually I haven't tried adding "net-ldap-1".

With "net-ldap" it raises a conflict and prevents redmine from starting.

from redmine_ldap_sync.

thorin avatar thorin commented on August 29, 2024

There is no issue opened on redmine.org.

from redmine_ldap_sync.

cforce avatar cforce commented on August 29, 2024

http://www.redmine.org/issues/12811

from redmine_ldap_sync.

majkinetor avatar majkinetor commented on August 29, 2024

It turns out that, at least here, using net-ldap-1 allows everybody to log on Redmine with any password....

So one solution is to use net-ldap-1 only while syncing and returning orignal after (which requires restarting web server so it might not be an option in some cases).

I will try to use again the code suggested by thorin

from redmine_ldap_sync.

thorin avatar thorin commented on August 29, 2024

I can confirm it.
With net-ldap-1 the ldap authentication gets broken.
Any password becomes valid to login as any user.

That doesn't happen if you use the version provided on https://github.com/ruby-ldap/ruby-net-ldap.git.

from redmine_ldap_sync.

thorin avatar thorin commented on August 29, 2024

I'll try to include a patch on for the utf8 problem in my plugin as planned on the redmine's ticket.

from redmine_ldap_sync.

thorin avatar thorin commented on August 29, 2024

I have included the patch on the plugin.
I'll need your help to test it, since I cannot reproduce the problem.

I'm giving preference to the fix proposed here: ruby-ldap/ruby-net-ldap@ccd7b6d
If it doesn't work I'll apply the one proposed here: https://github.com/ruby-ldap/ruby-net-ldap/pull/44/files

from redmine_ldap_sync.

cforce avatar cforce commented on August 29, 2024

I will test as sson as the bug #56 (comment) is removed.

from redmine_ldap_sync.

majkinetor avatar majkinetor commented on August 29, 2024

It looks like its fixed.
Thanks a lot.

from redmine_ldap_sync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.