Skip to content

Unable to delete User_LDAP user files/shares  #4117

@andrius-kulbis

Description

@andrius-kulbis

Steps to reproduce

  1. Setup User_LDAP app to use LDAP backend
  2. Delete user from LDAP
  3. Delete user via occ user:delete

Expected behaviour

User, his all data and shares removed.

Actual behaviour

User is visible in ldap:show-remnants output.

If LDAP cache is expired and does not contain a deleted user anymore, the user:delete operation fails saying that the user does not exists (while his files and shares are still present). User shares become broken but visible (not able to access them or unshare them)

Server configuration

Operating system: Debian Jessie

Web server: Apache 2.4

Database: Mariadb 10

PHP version: 5.6.27

Nextcloud version: 11.0.2

Updated from an older Nextcloud/ownCloud or fresh install: updated

Where did you install Nextcloud from: updater

Are you using an external user-backend, if yes which one: LDAP

Nextcloud log (data/nextcloud.log)

Nextcloud log While accessing share of user deleted from ldap:
{"reqId":"QM4KjOpNF9hTWTdYc\/IK","remoteAddr":"127.0.0.1","app":"files","message":" Backends provided no user object for testuser","level":3,"time":"2017-03-28T11:06:07+00:00","method":"GET","url":"\/index.php\/apps\/files_texteditor\/ajax\/loadfile?filename=test.csv&dir=%2F","user":"user","version":"11.0.2.7"}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions