owncloud / owncloud/user_ldap

groups not synced for API calls

Open
#268 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
17
Forks
19
Avg merge
11h 40m
Merged PRs (30d)
2

Description

  1. create a new group in LDAP
  2. share with this new group using the sharing API e.g. curl -u user0:1234 http://localhost/owncloud-core/ocs/v1.php/apps/files_sharing/api/v1/shares -d "path=FOLDER&shareType=1&permissions=31&shareWith=grp6"

result -> <message>Please specify a valid group</message>

syncing users via user:sync "OCA\User_LDAP\User_Proxy" does not help

./occ ldap:update-group grp6 does not work:

Group membership attribute is critical for this command, please verify.
* localhost:389 -> memberUid
The following groups are missing in the DB and will be skipped: grp6

BUT after ./occ group:list the group is listed and can be used

  • after fixing this un-skip acceptance tests in core marked with @user_ldap-issue-268
  • after fixing this un-skip acceptance tests in user_ldap marked with @issue-268

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the LDAP group-sharing request with the shown API call, then trace the group lookup and the ldap:update-group grp6 behavior. Use the core acceptance tests marked @user_ldap-issue-268 and the user_ldap tests marked @issue-268; done means newly created LDAP groups are accepted by the sharing API and both test groups can be uns-skipped.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
authorization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.