nextcloud / nextcloud/server

LDAP - more flexibility in group-member-association

Open
#7,301 5 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement feature: ldap
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

Actually, user_ldap application does not permit to precise the exact configuration of the directory in terms of groups membership. The only parameter we can choose is 'Group-Member association', where one cannot mention a particular attribute's name, only selection from drop-down list is possible. Later, the application use this choice to select an attribute name AND select the supposed type of content of this attribute (DN or UID).
Unfortunately, there is no standard of groups implementation in LDAP. There are several types of implementation that cannot be used with NextCloud. So, NextCloud should be a little bit more flexible:

  • Ask the name of attribute, used for group-member association at the level of groups (membreuid, members,...), the name of the attribute could be done as a text, not only as a selection from a list;
  • Ask the type of data, used in this attribute (DN or an attribute's content);
  • If the type of data is NOT DN - ask the name of user's attribute, used to create the association (uid, mail, samaccoutname,...).

I think that such improvement (with good documentation) could decrease the number of questions about LDAP configuration and bug-reports about LDAP groups not working.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by locating the LDAP group-member association configuration and its documentation; done means supporting custom group attributes, selectable DN or non-DN values, a user attribute for non-DN matching, and documenting the configuration.

Written by the indexing model from the issue text.

Assessment

Domain
authorization, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.