owncloud / user_ldap

📒
GNU Affero General Public License v3.0
17 stars 17 forks source link

Deleting file is not possible if a file is shared to LDAP group and Login Filter doesn't contains uid attribute #5

Open jvillafanez opened 8 years ago

jvillafanez commented 8 years ago

Original issue: https://github.com/owncloud/core/issues/24206 by @rogerfv1

Steps to reproduce

  1. Enable user_ldap plugin and set memberUID for Group-Member association.
  2. Edit LDAP Login Attributes so that it doesn't use the uid attribute. You can use mail attribute instead of uid.
  3. Create a ldap group and assign 2 members (user1 and user2) using memberUID.
  4. With user1 share any file to ldap group.
  5. With user2 try to delete the file shared by user1.

    Expected behaviour

User2 should be able to delete the file shared by user1.

Actual behaviour

User2 can't delete the file shared by user1. Error deleting file ""teste2_grupo.txt".

Server configuration

Operating system: Debian 7 x86_64

Web server: Apache 2.2

Database: Postgresql 9.4

PHP version: 5.4.45-0+deb7u2

ownCloud version: 9.0.1

Updated from an older ownCloud or fresh install: Updated

rogerfv1 commented 8 years ago

Hi, The issue persists after upgrade to 9.0.4. Deleting and unshare file is not possible yet.