Giter Club home page Giter Club logo

Comments (12)

thorin avatar thorin commented on August 29, 2024

Hi Simon, I'm going to try to reproduce it.
My guess is that it will be solved by adding require_dependency 'user' before line 23.

I'll come back with some further feedback.

from redmine_ldap_sync.

robertfrost avatar robertfrost commented on August 29, 2024

First of all thanks for your quick reply!

I added the require_dependency 'user' in line 23 but I'm afraid it did not change anything.
The redmine version I use is 1.2.1-0 on a ubuntu linux virtual machine (vmware player).

On which version of redmine did you test the plugin? So I could try the exact version of redmine that you used for development.

Thanks a lot,
Simon

from redmine_ldap_sync.

thorin avatar thorin commented on August 29, 2024

You developed it with version 1.2.0.devel.6106, ruby 1.8.7 ee and phusion passanger.

I have just upgraded my redmine to 1.2.1.devel.6317 and it worked fine.

I have just finished downloading the vmware player, later I'll install it and test the plugin there.
I wasn't being much successful with VirtualBox.

from redmine_ldap_sync.

robertfrost avatar robertfrost commented on August 29, 2024

Now I tried running redmine (bitnami) natively on windows server 2008. But I encountered the same issue.
The mongrel log says the following:
http://pastebin.com/aFCNUDg7

from redmine_ldap_sync.

thorin avatar thorin commented on August 29, 2024

I have managed to reproduce it by disabling all the other plugins I had installed.

from redmine_ldap_sync.

robertfrost avatar robertfrost commented on August 29, 2024

Ok. So that means that it works with a certain set of plugins installed? Maybe you can give me your plugin list, with which it is working, so that I can install the same?
That would be great for the first step!
Thank you very much for helping me out!
Simon

from redmine_ldap_sync.

thorin avatar thorin commented on August 29, 2024

I've just managed to fix it by adding both require_dependency 'principal' and require_dependency 'user'.

Got it from on of the plugins I was using redmine_local_avatars.

from redmine_ldap_sync.

robertfrost avatar robertfrost commented on August 29, 2024

Great, it starts up now :) thanks a lot! To fully test it, I need to wait for my sys admin to give me the correct group base dn, but I am sure this will work fine, I will let you know!

Thanks so much for your effort, you helped me a lot!
best regards,
Simon

from redmine_ldap_sync.

robertfrost avatar robertfrost commented on August 29, 2024

Sync worked fine, except one thing: I think you set the current admin user (in my case called 'user') to status 3 in the users database of redmine. This yields that the 'user' user cannot login anymore. Do you do that for a reason?

Thanks for your great support!

from redmine_ldap_sync.

thorin avatar thorin commented on August 29, 2024

What I do is to change the status of a user to disabled when I detect that it is disabled on ldap.
I'm going to do a small change to see if that helps.

from redmine_ldap_sync.

thorin avatar thorin commented on August 29, 2024

I know what might be the problem...
I'm not detecting if an user that exists on redmine is or not from LDAP.

A so, you must have an user on the LDAP with the login 'user' that is disabled.

from redmine_ldap_sync.

thorin avatar thorin commented on August 29, 2024

Can you test it Robert?
I should be fixed. It now checks if the authentication source as it should.

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.