Open jvillafanez opened 2 years ago
Kudos, SonarCloud Quality Gate passed!
Kudos, SonarCloud Quality Gate passed!
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.
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.