Giter Club home page Giter Club logo

Comments (6)

thorin avatar thorin commented on August 29, 2024

Hi guitz,
Please try with uniquemember or member on the attribute
attr_member. That attribute should contain a unique name.
I believe that memberuid contains the login of the user.

from redmine_ldap_sync.

thorin avatar thorin commented on August 29, 2024

I've been googling and it's possible that posixGroup doesn't contain the DN of its members.
If it's somehow possible to extend a posixGroup with the objectClass groupOfNames that would be a solution.

Otherwise it will be necessary to patch the code to work with the user's logins instead of the DN.
Comment the following lines:

              user_dn = nil
              user_filter = Net::LDAP::Filter.eq( 'objectClass', settings[:class_user] )
              login_filter = Net::LDAP::Filter.eq( self.attr_login, user.login )
              ldap.search(:base => self.base_dn,
                          :filter => user_filter & login_filter,
                          :attributes => ['dn'],
                          :return_result => false) do |entry|
                user_dn = entry['dn'][0]
              end

And replace user_dn (line 138) with user.login.

from redmine_ldap_sync.

thorin avatar thorin commented on August 29, 2024

Guitz, have you managed to get it working?

from redmine_ldap_sync.

guidtz avatar guidtz commented on August 29, 2024

Hello, sorry for this long wait. I'll try to test this week or next.

Thanks

from redmine_ldap_sync.

thorin avatar thorin commented on August 29, 2024

Goteas merge on issue #15 should have fixed this.
Feel free to reopen this ticket if you still have this problem.

from redmine_ldap_sync.

guidtz avatar guidtz commented on August 29, 2024

Yes I try it last week and It's work ... Good Job thanks

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.