Skip to content

[stable8.1]Properly nest groups when using memberOf to detect group membership, fixes #17759 - #18123

Merged
blizzz merged 3 commits into
owncloud:stable8.1from
GreenArchon:backport-17759-stable8.1
Sep 21, 2015
Merged

[stable8.1]Properly nest groups when using memberOf to detect group membership, fixes #17759#18123
blizzz merged 3 commits into
owncloud:stable8.1from
GreenArchon:backport-17759-stable8.1

Conversation

@GreenArchon

Copy link
Copy Markdown
Contributor

Backport of #18042 , approval #18042 (comment)

This backport is also under MIT license.

@ghost

ghost commented Aug 7, 2015

Copy link
Copy Markdown

Thanks a lot for your contribution!
Contributions to the core repo require a signed contributors agreement http://owncloud.org/about/contributor-agreement/

Alternatively you can add a comment here where you state that this contribution is MIT licensed.

Some more details about out pull request workflow can be found here: http://owncloud.org/code-reviews-on-github/

@karlitschek

Copy link
Copy Markdown
Contributor

@blizzz what do you think?

@MorrisJobke MorrisJobke added this to the 8.1.2-next-maintenance milestone Aug 8, 2015
@MorrisJobke

Copy link
Copy Markdown
Contributor

@blizzz what do you think?

I guess he also wants the backport ;) #18042 (comment)

@MorrisJobke

Copy link
Copy Markdown
Contributor

@owncloud-bot this is okay to test

@DeepDiver1975

Copy link
Copy Markdown
Member

let's hold back this merge until #18042 is in master

@ghost

ghost commented Aug 12, 2015

Copy link
Copy Markdown

🚀 Test PASSed.🚀
chuck

@PVince81

Copy link
Copy Markdown
Contributor

#18042 is still requiring review/attention

@MorrisJobke

Copy link
Copy Markdown
Contributor

cc @blizzz @davivel

@davivel

davivel commented Aug 26, 2015

Copy link
Copy Markdown

@MorrisJobke, me, sure? I don't know what is this about :S

@blizzz

blizzz commented Aug 26, 2015

Copy link
Copy Markdown
Contributor

looks good, tested, works, 👍

@davitol maybe?

@davitol

davitol commented Aug 26, 2015

Copy link
Copy Markdown
Contributor

@davitol maybe? I`ve just tested and I think it is not solved
Nested Groups checkbox checked

Active Directory configuration (ABarr is inside group1; group1 is inside group2)

ad1

nest1
nest2
nest3

@blizzz

blizzz commented Aug 26, 2015

Copy link
Copy Markdown
Contributor

@davitol you need to check in the user management whether a member of group1 is also shown when you click on group2. Don't forget to check "Nested groups" in advanced settings. See reproduction steps here #17759

@MorrisJobke

Copy link
Copy Markdown
Contributor

@davivel Sorry I always mixup your username with the one of @davitol 😕 :P

@davitol

davitol commented Aug 26, 2015

Copy link
Copy Markdown
Contributor

The user does not appear in group 1 or group2, only when clicking in Everyone

nousuvisi

usuvisieve

@blizzz

blizzz commented Aug 26, 2015

Copy link
Copy Markdown
Contributor

@davitol might it be some caching thing? can you give the owncloud config, just to check? it worked fine for me here.

@MellonQ

MellonQ commented Aug 27, 2015

Copy link
Copy Markdown

Hi!
In order to operate properly search for nested groups in Active Directory you have not to use expression like "(memberof=CN=ownCloud Users,OU=Groups,DC=example,DC=com)" because it looks only for direct group membership. In AD there is "special-M$" search OID for this purposes (discribed here - https://msdn.microsoft.com/en-us/library/aa746475%28v=vs.85%29.aspx), so the correct search filter is:
(memberof:1.2.840.113556.1.4.1941:=CN=ownCloud Users,OU=Groups,DC=example,DC=com)

@MorrisJobke

Copy link
Copy Markdown
Contributor

@cmonteroluque I will move this to 8.1.3

@MorrisJobke MorrisJobke modified the milestones: 8.1.3-current-maintenance, 8.1.2 Sep 9, 2015
@davitol

davitol commented Sep 10, 2015

Copy link
Copy Markdown
Contributor

It worked OK for me switching the BP patch to oc server: version":"8.1.2.1","versionstring":"8.1.2"

@davitol

davitol commented Sep 11, 2015

Copy link
Copy Markdown
Contributor

👍 Waiting for another reviewer 😸

@MorrisJobke MorrisJobke modified the milestones: 8.1.3, 8.1.4-current-maintenance Sep 13, 2015
@MorrisJobke MorrisJobke modified the milestones: 8.1.4-current-maintenance, 8.1.3 Sep 13, 2015
@blizzz

blizzz commented Sep 21, 2015

Copy link
Copy Markdown
Contributor

@MellonQ that's interesting and probably worth an improvement for the future (>= OC 9.0). However, it would be very MS specific and we cannot guess the directory server in use. Maybe you are interested in following this idea and doing a PR against master? Or open a new issue as feature request with those details, so they do not get lost, at least.

@blizzz

blizzz commented Sep 21, 2015

Copy link
Copy Markdown
Contributor

@davitol I reviewed already here #18123 (comment), let's merge

blizzz added a commit that referenced this pull request Sep 21, 2015
[stable8.1]Properly nest groups when using memberOf to detect group membership, fixes #17759
@blizzz
blizzz merged commit dc1755a into owncloud:stable8.1 Sep 21, 2015
@davitol

davitol commented Oct 13, 2015

Copy link
Copy Markdown
Contributor

@cmonteroluque @DeepDiver1975 @blizzz Maybe it would be necessary a 'forwardport' to 8.2.X ?

@MorrisJobke

Copy link
Copy Markdown
Contributor

@cmonteroluque @DeepDiver1975 @blizzz Maybe it would be necessary a 'forwardport' to 8.2.X ?

It is already in master: #18042

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants