Skip to content

[stable16] relax strict getHome behaviour for LDAP users in a shadow state - #18885

Merged
juliusknorr merged 1 commit into
stable16from
backport/17717/stable16
Feb 28, 2020
Merged

[stable16] relax strict getHome behaviour for LDAP users in a shadow state#18885
juliusknorr merged 1 commit into
stable16from
backport/17717/stable16

Conversation

@blizzz

Copy link
Copy Markdown
Member

backport of #17717

@rullzerrullzer mentioned this pull request Jan 20, 2020
@juliusknorrjuliusknorr added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jan 23, 2020
@rullzer

Copy link
Copy Markdown
Member

CI does boom

@juliusknorr
juliusknorrforce-pushed the backport/17717/stable16 branch from 86e7357 to 2a12d33CompareJanuary 23, 2020 09:34
@juliusknorr

Copy link
Copy Markdown
Member

Pushed a quick fix for PHPUnit compatibility

@rullzer

Copy link
Copy Markdown
Member

Doesn't seem to be enough https://drone.nextcloud.com/nextcloud/server/25471/14/4

@blizzz

This comment has been minimized.

* 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
blizzzforce-pushed the backport/17717/stable16 branch from f4a8881 to 5c7948fCompareFebruary 28, 2020 00:01
@blizzz

Copy link
Copy Markdown
MemberAuthor

I added the unit test compat fixes from the17 backport #18884

@skjnldsv

Copy link
Copy Markdown
Member

Greeeen

@juliusknorr
juliusknorr merged commit ad317fe into stable16Feb 28, 2020
@juliusknorr
juliusknorr deleted the backport/17717/stable16 branch February 28, 2020 08:45
@rullzerrullzer mentioned this pull request Mar 2, 2020
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finishbugenhancementfeature: ldap

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@blizzz@rullzer@juliusknorr@skjnldsv