Giter Club home page Giter Club logo

Comments (5)

thorin avatar thorin commented on August 29, 2024

The library I'm using is the following: http://net-ldap.rubyforge.org/Net/LDAP.html
I haven't seen an option to log the generated queries.

You can use puts to print some of the variables, if that helps you.

If you want me to help I'll need the Distinguished Names of one of the groups and of one of the users.
And the values of the following Settings:

  • Group Base DN
  • Group name attribute (group)
  • Group membership
  • Members attribute (group)
  • Memberid attribute (user)
  • Groups attribute (user)
  • Groupid attribute (group)
  • Groups objectclass
  • Users objectclass
  • Group name pattern
  • Group search filter
  • Users must be members of

from redmine_ldap_sync.

fjakop avatar fjakop commented on August 29, 2024

Thanks for the reply. The settings are the following:

  • Group Base DN --> empty
  • Group name attribute (group) --> cn
  • Group membership --> on the group class
  • Members attribute (group) --> member
  • Memberid attribute (user) --> cn
  • Groups attribute (user) --> n/a
  • Groupid attribute (group) --> n/a
  • Groups objectclass --> dominoGroup
  • Users objectclass --> dominoPerson
  • Group name pattern --> empty
  • Group search filter --> empty
  • Users must be members of --> empty

A group's DN looks like "cn=Alle" (I can find the group with this search string in LDAP-Browser)
A typical member attibute looks like "member=CN=Max Meier,O=FOO,C=DE"

A user's DN looks like "CN=Max Meier,O=FOO,C=DE"

Is the Base-DN of the user configured in the settings of the "normal" LDAP-auth page appended to the value of the member-attribute in the group while looking up the group's members? This would result in a DN like "CN=Max Meier,O=FOO,C=DE,O=FOO,C=DE"

from redmine_ldap_sync.

thorin avatar thorin commented on August 29, 2024

No, I don't append it. I use the same query as the one executed by redmine to search for users.

To search for group members I use the memberid attribute (ie, I search for groups that contains members with a specific memberid).
The memberid must not be cn. It needs to be an attribute containing the distinguished name. (for example DN, if there is such attribute on Lotus Notes LDAP)

from redmine_ldap_sync.

fjakop avatar fjakop commented on August 29, 2024

That was the crucial hint! In my LDAP-Browser the attribute dn on the user is not visible, nevertheless it exists. Using this attribute makes the things work.

A conclusion for other readers:

Settings for Lotus Notes LDAP (tested against Lotus Notes 8.5.2)
Group Base DN --> empty
Group name attribute (group) --> cn
Group membership --> on the group class
Members attribute (group) --> member
Memberid attribute (user) --> dn
Groups objectclass --> dominoGroup
Users objectclass --> dominoPerson
Group name pattern --> empty
Group search filter --> empty
Users must be members of --> empty

from redmine_ldap_sync.

thorin avatar thorin commented on August 29, 2024

Thank you. I've updated the readme with your settings.

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.