user_ldap icon indicating copy to clipboard operation
user_ldap copied to clipboard

Provide a command similar to the reuse_account flag to remap ldap users

Open jvillafanez opened this issue 3 years ago • 3 comments

Ref https://github.com/owncloud/enterprise/issues/5449

Allow remaping the LDAP user if it's the only one possible. This could happen if the LDAP user has been moved AND the directory_uuid has also changed, but the target username is the same. The behavior should be similar than syncing the backend with the "reuse_account" flag, but in a more controlled way.

Note that this WON'T solve the collisions that could be happening. If 2 or more LDAP users could match the same username, the remap will be aborted.

jvillafanez avatar Oct 26 '22 11:10 jvillafanez

Note that I've rebased the code and I had to fix things (https://github.com/owncloud/user_ldap/pull/757/commits/6bf21d818922737359a86f8bd20022db81e4a951). It should work, but consider the PR as untested due to the last commit.

jvillafanez avatar Feb 27 '23 11:02 jvillafanez