-
Notifications
You must be signed in to change notification settings - Fork 17
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
User sync writes twice to account table #72
Comments
It's here https://github.com/owncloud/user_ldap/blob/v10.0.0beta2/lib/User/User.php#L451 This is all old behavior which is obsoleted by the account table. |
@jvillafanez @DeepDiver1975 do we agree that any user backend should return its own implementation of IUser containing the necessary attributes ? It should be possible here to make LDAP's |
Instead of implementing |
fixed with #125 |
Steps
occ user:sync 'OCA\User_LDAP\User_LDAP'
processAttributes
Expected
processAttributes
doesn't retrieve the account table's IUser entry.It must return its own IUser instance that stores email, quota, etc.
It's the SyncService that uses these values then to populate the account table
Actual
processAttributes
callsUserManager->get($uid)
and$user->setEMailAddress()
which internally stores the email already into the account table.Then later on the sync service does the same again. Or it skips it because the email didn't change.
Versions
ownCloud 10.0 beta2+ master
While the end result might look the same, this makes problems with duplicate email addresses not solvable, see owncloud/core#27652
The text was updated successfully, but these errors were encountered: