Giter Club home page Giter Club logo

Comments (13)

thorin avatar thorin commented on August 29, 2024

I'll create a branch for version 2.0.

In the meanwhile nicaog has already created a patch for this. DanieGu@a74ef2c

You can use this version.

from redmine_ldap_sync.

chinenual avatar chinenual commented on August 29, 2024

Thanks for the quick reply. That patch seems to work fine. The synchronization appears to be very slow - is that expected? The log appears to be processing one user account every 20 seconds or so. Is that normal, or an indication of a misconfiguration or networking problem on my part?

from redmine_ldap_sync.

thorin avatar thorin commented on August 29, 2024

It might depend on the connection between the redmine's server and the ldap
server.

On a infrastructure where the ldap server is on the same network as the
redmine's server it should take milliseconds to process an user account.

But I've only tested it on situations where the users have between 3 to 20
groups. I don't know how the number of groups affects the synchronization
time.

On Tue, Jun 19, 2012 at 6:55 PM, chinenual <
[email protected]

wrote:

Thanks for the quick reply. That patch seems to work fine. The
synchronization appears to be very slow - is that expected? The log
appears to be processing one user account every 20 seconds or so. Is that
normal, or an indication of a misconfiguration or networking problem on my
part?


Reply to this email directly or view it on GitHub:
#38 (comment)

from redmine_ldap_sync.

chinenual avatar chinenual commented on August 29, 2024

I think it's due to our LDAP tree structure. The AD server is on the same network as redmine, however we have a huge number of groups in AD - over 1080 by my count and over 3100 users. No single user is in more than 30 or 40 groups.

It took about 3 hours to do the sync - I think I'll be syncing once a day rather than hourly as in the example :)

from redmine_ldap_sync.

thorin avatar thorin commented on August 29, 2024

Ok, by the end of the next month I should have some of the optimizations
suggested on #28.
It'll probably reduce that time.

You might also want to test the login. If it always takes you that amount
of time to synchronize a user, you might want to disable the
synchronization on login.

For that you'll need to comment the following line on file
auth_source_ldap_patch.rb:

alias_method_chain :try_to_login, :redmine_ldap_sync

On Tue, Jun 19, 2012 at 10:57 PM, chinenual <
[email protected]

wrote:

I think it's due to our LDAP tree structure. The AD server is on the same
network as redmine, however we have a huge number of groups in AD - over
1080 by my count. No single user is in more than 30 or 40.

It took about 3 hours to do the sync - I think I'll be syncing once a day
rather than hourly as in the example :)


Reply to this email directly or view it on GitHub:
#38 (comment)

from redmine_ldap_sync.

thorin avatar thorin commented on August 29, 2024

I've created the branch redmine-2.0 and merged Nicaog's commit a74ef2c.

from redmine_ldap_sync.

fabpicca avatar fabpicca commented on August 29, 2024

Hello,
I've checked out the afore mentioned branch, but unfortunately I get the same error on my environment that is:

Redmine version 2.0.3.stable
Ruby version ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]
Rails version 3.2.6
Environment production
Database adapter MySQL

Am I doing something wrong?
Actually I've run RAILS_ENV=production rake redmine:plugins:migrate task and everything seems fine,
but I get the same error (no such file to load -- dispatcher).

from redmine_ldap_sync.

thorin avatar thorin commented on August 29, 2024

It might be on other plugins.
Do a search for "require 'dispatcher'" or just "dispatcher" on your plugins
folder.

from redmine_ldap_sync.

fabpicca avatar fabpicca commented on August 29, 2024

That's what I tought.
Actually I don't have other plugins installed.
i'm performing an extensive search for dispatcher around...

from redmine_ldap_sync.

fabpicca avatar fabpicca commented on August 29, 2024

Ok that is strange.
No plugin and no "require 'dispatch'" around.
A cache problem?

I'm quite new to the overall RoR thing...any advice really appreciated.

from redmine_ldap_sync.

thorin avatar thorin commented on August 29, 2024

If you disable the plugin (just move it to a different folder) does it
start working?

If it still doesn't work without the plugin, you'll have to start tracing
for errors on the ruby stack.
It might be a problem with mongrel.

from redmine_ldap_sync.

fabpicca avatar fabpicca commented on August 29, 2024

Uhm, ok, I did it and it actually still doesn't work.
I'm not using mongrel, but Passenger...
I'll try to do some investigation.
Thanks in the meanwhile.

from redmine_ldap_sync.

fabpicca avatar fabpicca commented on August 29, 2024

solved, I had a misconfiguration in my RoR stack.

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.