Giter Club home page Giter Club logo

Comments (8)

thorin avatar thorin commented on August 29, 2024

Hi Messinger,

I agree with you. That should not be difficult to implement since redmine already differentiates database and ldap users through the auth_source_id column.

It's a question of doing a run through all the ldap_users and disable those that are neither "deactivated" nor "active".
In other words, the ones that hasn't been caught on the ldap search.

from redmine_ldap_sync.

cforce avatar cforce commented on August 29, 2024

+1 for this

from redmine_ldap_sync.

thorin avatar thorin commented on August 29, 2024

Adding the following code after line 102 of auth_source_ldap_patch.rb should do it:

users[:disabled] += self.users.active.collect(&:login) - users.values.flatten

I'll test it tomorrow

from redmine_ldap_sync.

thorin avatar thorin commented on August 29, 2024

Please tell me if my last push worked for you.

from redmine_ldap_sync.

Messinger avatar Messinger commented on August 29, 2024

Hi,

it worked - but looks like it deactivated some users not deleted in LDap. May that there are problems on our installation, I'll check it.

I forgot piping the output to a logfile, so I can not see, whats going on, so I try it again today.

from redmine_ldap_sync.

Messinger avatar Messinger commented on August 29, 2024

Yes, its deleted a lot more users than wanted. In one case it looks like there were a problem mit upper/lowercase signs inside name.

In other cases I see no reason, why this happens. thats real bad :( But I investigate further.

from redmine_ldap_sync.

Messinger avatar Messinger commented on August 29, 2024

Ok,

as I expected: the problems where on our side, so you can close this request, it works like a charme.

Many thanks for your fast fix!

from redmine_ldap_sync.

thorin avatar thorin commented on August 29, 2024

Perfect, I'll close this issue.

Thank you for the reply

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.