Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable17] relax strict getHome behaviour for LDAP users in a shadow state #18884

Merged
merged 1 commit into from
Feb 28, 2020

Conversation

blizzz
Copy link
Member

@blizzz blizzz commented Jan 14, 2020

backport of #17717

@rullzer rullzer mentioned this pull request Jan 20, 2020
@rullzer
Copy link
Member

rullzer commented Jan 21, 2020

CI fails

@blizzz

This comment has been minimized.

@blizzz
Copy link
Member Author

blizzz commented Feb 27, 2020

CI fails

were just phpunit version related incompatibilities

@juliushaertl
Copy link
Member

@blizzz Please squash the fixups. 😉

Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

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

👍 (🐘)

* simplifies deletion process
* less strange behaviour when looking up home storage (as long as it is local)
* thus could enable transfer ownerships after user went invisible on ldap

backport of #17717

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>

decouple userExists from userExistsOnLDAP check

allows to mark users as offline right away, avoids a gap of being not a
user and causing weird side effects

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>

adjust tests

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>

remove superfluous tests

- user_ldap is not exposed to public api, it is always behind ldap_proxy
- this is too much for a unit test
- integration tests cover userExists implicitly

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>

ensure that only valid group members are returned

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
@blizzz blizzz added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Feb 28, 2020
@blizzz blizzz merged commit 6cf2507 into stable17 Feb 28, 2020
@blizzz blizzz deleted the backport/17717/stable17 branch February 28, 2020 21:47
@rullzer rullzer mentioned this pull request Mar 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug enhancement feature: ldap
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants