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

occ user:sync does not work for one user only #456

Open
dpakach opened this issue Oct 17, 2019 · 2 comments
Open

occ user:sync does not work for one user only #456

dpakach opened this issue Oct 17, 2019 · 2 comments
Labels

Comments

@dpakach
Copy link
Contributor

dpakach commented Oct 17, 2019

Description

When we do occ user:sync "OCA\User_LDAP\User_Proxy" then this syncs all the users from the LDAP server.
Running occ user:sync "OCA\User_LDAP\User_Proxy" -u <uid> should only sync user with id <uid>.

Steps

  1. Setup LDAP server and add to owncloud.
  2. Add users to the LDAP server (for eg. user1 and user2)
  3. run occ user:sync "OCA\User_LDAP\User_Proxy" to sync all the users
  4. Modify an attribute on the LDAP server for user1 (eg Display Name).
  5. run occ user:sync "OCA\User_LDAP\User_Proxy" -u user1 to sync just for user1

Expected Behavior

The displayName attribute of the user gets updated in owncloud.

Actual Behavior

We get following output

➜ sudo -u www-data php occ user:sync "OCA\User_LDAP\User_Proxy" -u user1

If unknown users are found, what do you want to do with their accounts? (removing the account will also remove its data)
  [0] disable
  [1] remove
  [2] ask later
 > 0
Syncing user1 ...
Disabling accounts:
user1, User Onessss, [email protected] disabled

And the attribute of the user doesn't get changed.

@dpakach dpakach added the bug label Oct 17, 2019
@phil-davis phil-davis changed the title occ user:sync doesnot works for one user only occ user:sync does not work for one user only Oct 17, 2019
@phil-davis
Copy link
Contributor

This was noticed when trying to make acceptance tests for the new user-sync OCS API - owncloud/core#36236

@cdamken
Copy link
Contributor

cdamken commented Nov 15, 2019

owncloud/core#36236

is this patch in the new LDAP release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants