CandyShop / gerrit

Automatically exported from code.google.com/p/gerrit
Apache License 2.0
1 stars 0 forks source link

Merging Gerrit User Accounts #567

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Sometimes users wind up with two accounts on a Gerrit server, this is 
especially common with OpenID installations when the user forgets which 
OpenID provider he had used, and opens yet another account with a different 
OpenID identity... but the site administrator knows they are the same person.

Probably what we need to do is, permit the user to merge the
account on their own through the existing link identity feature.

Original issue reported on code.google.com by pkufra...@gmail.com on 12 May 2010 at 1:47

GoogleCodeExporter commented 9 years ago

Original comment by sop@google.com on 12 May 2010 at 1:49

GoogleCodeExporter commented 9 years ago
I think the "Confirm OpenID" in statckoverflow maybe helpful. The user is given 
an 
option for creation or link.

Confirm OpenID
This is an OpenID we haven't seen on Meta Stack Overflow before:

https://www.google.com/accounts/o8/id?id=aitoawlaysitgwrflop1ut50gs8u0l6fvoq0qqi

Do you want to create a new Meta Stack Overflow account with this OpenID?

(If you want to associate this OpenID with an existing Meta Stack Overflow 
account, 
click Cancel, log in to your Meta Stack Overflow account, then click the 
Add/Change 
OpenID link on your user page.)

Original comment by pkufra...@gmail.com on 12 May 2010 at 6:07

GoogleCodeExporter commented 9 years ago
We end up with the need to do this with LDAP also.  Sometimes userids in ldap 
change for a user, once this happens, the user is not able to access their old 
account to even update it (since it is no longer in LDAP).  It seems like and 
admin sql script which merged the two users might be a good fix (simply update 
the old userids in every table with the new one)?

Original comment by mf...@codeaurora.org on 20 Aug 2010 at 5:32

GoogleCodeExporter commented 9 years ago
The SQL script on the wiki should be able to merge any
two accounts, LDAP or OpenID, it doesn't care.  Though
after merging two LDAP accounts you may need to go and
delete the old "gerrit:%s" account_external_id record.

Anyway, we really want this in the web UI so its either
self-service for an OpenID user, or is available to a
site administrator so they can help out a user who cannot
do the merge on their own.  Doing it by SQL update is
not fun, and will become impossible when we are running
on a NoSQL system.

Original comment by sop@google.com on 21 Aug 2010 at 7:40

GoogleCodeExporter commented 9 years ago
Issue 932 has been merged into this issue.

Original comment by nas...@grainawi.org on 21 May 2011 at 12:52

GoogleCodeExporter commented 9 years ago
A deactivate account feature would give the same functionality I presume, and I 
would like to see that soon. :)

Original comment by champion...@gmail.com on 21 Jun 2013 at 2:54

GoogleCodeExporter commented 9 years ago
@championswimmer, you can already set accounts to "inactive", but that doesn't 
help with merging. There are unique problems to merging accounts that 
"inactive" doesn't solve at all (like registered email addresses being locked 
to the old account).

Original comment by nas...@grainawi.org on 21 Jun 2013 at 3:12

GoogleCodeExporter commented 9 years ago
i have users registered on gerrit. previously they were being logged in with 
openid. now i have created ldap ids(changed authentication from openid to ldap) 
for them. how can i attach these ldap ids with their previous accounts?

Original comment by muhammad...@jintac.com on 11 Oct 2013 at 4:59