Skip to content

[stable13] Apply ldapUserFilter on members of group - #9839

Merged
skjnldsv merged 2 commits into
stable13from
backport/8221/stable13
Jun 13, 2018
Merged

[stable13] Apply ldapUserFilter on members of group#9839
skjnldsv merged 2 commits into
stable13from
backport/8221/stable13

Conversation

@blizzz

Copy link
Copy Markdown
Member

backport of #8221

Roland Tapken added 2 commits June 12, 2018 18:21
Refers to issue #8220
user_ldap configured with custom filters for active directory access
(group-member-association is "member"). Then it can happen that the
members of a group contain members that don't belong to the users
available in Nextcloud (the most trivial reason is that the user filter
contains "(!(UserAccountControl:1.2.840.113556.1.4.803:=2))" to exclude
disabled users from being imported).
This can be fixed by applying the ldapUserFilter when resolving the UID
for a DN fetched from the group's member list.
Signed-off-by: Roland Tapken <roland@bitarbeiter.net>
Signed-off-by: Roland Tapken <roland@bitarbeiter.net>
@codecov

codecovBot commented Jun 12, 2018

Copy link
Copy Markdown

Codecov Report

Merging #9839 into stable13 will increase coverage by <.01%.
The diff coverage is 50%.

@@ Coverage Diff @@## stable13 #9839 +/- ##
==============================================
+ Coverage 51.43% 51.44% +<.01% 
Complexity 25135 25135 ==============================================
Files 1613 1613 Lines 95626 95628 +2 Branches 1376 1376 ==============================================
+ Hits 49190 49192 +2 
Misses 46436 46436
Impacted FilesCoverage ΔComplexity Δ
apps/user_ldap/lib/Access.php40.04% <50%> (+0.02%)320 <0> (ø)⬇️
apps/files_trashbin/lib/Trashbin.php72.53% <0%> (+0.24%)136% <0%> (ø)⬇️

@MorrisJobkeMorrisJobke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Code makes sense 👍

@skjnldsvskjnldsv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🐘

@skjnldsv
skjnldsv merged commit 0d9c338 into stable13Jun 13, 2018
@skjnldsv
skjnldsv deleted the backport/8221/stable13 branch June 13, 2018 04:55
@MorrisJobkeMorrisJobke mentioned this pull request Jul 10, 2018
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@blizzz@MorrisJobke@skjnldsv