Skip to content

Fix issue with LDAP groups in the applicable field - #41063

Merged
DeepDiver1975 merged 6 commits into
masterfrom
applicable_group_displayname
Nov 14, 2023
Merged

Fix issue with LDAP groups in the applicable field#41063
DeepDiver1975 merged 6 commits into
masterfrom
applicable_group_displayname

Conversation

@jvillafanez

Copy link
Copy Markdown
Member

Description

The "applicable" field in the external storage configuration wasn't working for LDAP groups. This issue happens on new installations where the configured LDAP attribute for the groupname is the "objectguid" or "entryuid".
Old installations should have the "cn" attribute configured instead, which should match the configured displayname for the group, so the issue shouldn't happen

Related Issue

#41062

Motivation and Context

The "applicable" field should work properly regardless of the LDAP configuration. In particular, the default configuration should work.

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Database schema changes (next release will require increase of minor version instead of patch)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:
  • Changelog item, see TEMPLATE

@phil-davis phil-davis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few comments on the changelog

Comment thread changelog/unreleased/41063 Outdated
Comment thread changelog/unreleased/41063 Outdated
@jvillafanez
jvillafanez force-pushed the applicable_group_displayname branch from bc97b1e to 42ed88b Compare October 30, 2023 08:13

@DeepDiver1975 DeepDiver1975 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some remarks on type declarations

Comment thread apps/files_external/lib/Controller/ApplicableController.php Outdated
Comment thread apps/files_external/lib/Controller/ApplicableController.php Outdated
Comment thread apps/files_external/lib/Controller/ApplicableController.php Outdated
Comment thread apps/files_external/lib/Controller/ApplicableController.php Outdated
Comment thread apps/files_external/tests/Controller/ApplicableControllerTest.php Outdated
@jvillafanez
jvillafanez force-pushed the applicable_group_displayname branch from 2082381 to 1c43b2c Compare November 8, 2023 13:10
@owncloud owncloud deleted a comment from update-docs Bot Nov 10, 2023
@sonarqubecloud

Copy link
Copy Markdown
@DeepDiver1975
DeepDiver1975 merged commit 0d38f03 into master Nov 14, 2023
@delete-merged-branch
delete-merged-branch Bot deleted the applicable_group_displayname branch November 14, 2023 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants