On 4 Mar 2021, at 17:12, anish....@gmail.com <anish....@gmail.com> wrote:Hello Team,We are now in a catch 20 fix and have no way out ..................Request assictance.Production Server Scenario:User-A --> Account username : AUser-A --> Account email: a...@gmail.comNow user-A had some issues and his username had to be changed.The new account name in the Active LDAP directory isUser-A --> Account username : A1User-A --> Account email: a...@gmail.comNow when the user tries to login it with A1 account which is the new username it fails with the error the e-mail is is already associated to a different account.
I tried deleting the user-id/email/add email/edit email but nothing works.I tried using the account plugin but that has also resulted in "Internal Server Error and has not helped fix the issue"
Is there a way to delete this account completely from Gerrit and create a new one???
Any help is greatly appreciated.Thank you,Anish
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/d7ac5289-3759-4d53-8934-dd9348608006n%40googlegroups.com.
On 4 Mar 2021, at 17:33, anish....@gmail.com <anish....@gmail.com> wrote:Hello Luca,Which version of Gerrit are you running?We are on Gerrit Version 3.0.11 --> We somehow need to get this fixed to avoid all possible escalations.Kindly suggest how we can delete the user completely, so he can create a new account and then use it.I tried the below link but instead of user details it simply gives me lot of directories and I'm not sure if it can even be deleted.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/a0883c96-117f-4fe1-a9ae-070e952d8b12n%40googlegroups.com.
On 4 Mar 2021, at 17:12, anish....@gmail.com <anish....@gmail.com> wrote:Hello Team,We are now in a catch 20 fix and have no way out ..................Request assictance.Production Server Scenario:User-A --> Account username : AUser-A --> Account email: a...@gmail.comNow user-A had some issues and his username had to be changed.The new account name in the Active LDAP directory isUser-A --> Account username : A1User-A --> Account email: a...@gmail.comNow when the user tries to login it with A1 account which is the new username it fails with the error the e-mail is is already associated to a different account.
ssh -p <port> <host> gerrit set-account --inactive A
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/31D6CDF8-4389-4619-86F2-6F09D4031C57%40gmail.com.
On 4 Mar 2021, at 17:46, anish....@gmail.com <anish....@gmail.com> wrote:Hello Matthias, I will test that and update you.@Luca, could you please provide an example for --> 1. Don’t clone All-Users.git from Gerrit’s endpoint: just clone the bare repo on the serverI'm a little confused now on the bare repo that needs to be cloned.
Thank you,AnishOn Thursday, 4 March 2021 at 23:10:04 UTC+5:30 Matthias Sohn wrote:On Thu, Mar 4, 2021 at 6:22 PM Luca Milanesio <luca.mi...@gmail.com> wrote:On 4 Mar 2021, at 17:12, anish....@gmail.com <anish....@gmail.com> wrote:Hello Team,We are now in a catch 20 fix and have no way out ..................Request assictance.Production Server Scenario:User-A --> Account username : AUser-A --> Account email: a...@gmail.comNow user-A had some issues and his username had to be changed.The new account name in the Active LDAP directory isUser-A --> Account username : A1User-A --> Account email: a...@gmail.comNow when the user tries to login it with A1 account which is the new username it fails with the error the e-mail is is already associated to a different account.try to first set account A to inactive [1] in Gerrit then A1 should be able to use the email addressssh -p <port> <host> gerrit set-account --inactive A
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/918b0c71-001b-4d36-9147-94b2c130dc23n%40googlegroups.com.
On 8 Mar 2021, at 13:54, anish....@gmail.com <anish....@gmail.com> wrote:Thank you, Luca, That works perfectly and I'm able to query for the user.git grep plrkum4 *
95/b68a7e420aac6ffcfb2d309b98ef38b306dce0:[externalId "gerrit: plrkum4 "]
d1/6d5f79739e4defee06f977216a2b73dbc0cd4f:[externalId "username: plrkum4 "]Did a git rm for User plrkum4Now when i push the --> git push --force origin HEAD:refs/meta/external-ids,
> git clone /data/gerrit/git/All-Users.git/
> Cloning into 'All-Users'...
> done.
> Note: switching to '2199d89d504f9593124b503344342951bf258c79’
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/895c3014-21b6-4f0b-a597-fbc3f1f9390fn%40googlegroups.com.