Change the name of jenkins user

654 views
Skip to first unread message

Peter Bruin

unread,
Jul 4, 2013, 8:46:17 PM7/4/13
to repo-d...@googlegroups.com
I am using Gerrit with HTTP_LDAP and created a jenkins user but didn't specify the full-name and email at the time. Now the jenkins user is named the Anonymous Coward. When I try to use set-account --full-name I get the message that "The realm doesn't allow editting of names".
Then I tried to add jenkins as a user in LDAP but when I try to log in I see an exception being thrown that the user already exists.

Any idea how to resolve this? Or do I need to hack the database?

Saša Živkov

unread,
Jul 5, 2013, 5:32:01 AM7/5/13
to Peter Bruin, repo-d...@googlegroups.com
On Fri, Jul 5, 2013 at 2:46 AM, Peter Bruin <build...@gmail.com> wrote:
I am using Gerrit with HTTP_LDAP and created a jenkins user but didn't specify the full-name and email at the time.
Have you created the jenkins user in your LDAP system or as a Gerrit role account (using gerrit create-account)?
The email address is not important for pure Gerrit users but the full-name is.
 
Now the jenkins user is named the Anonymous Coward. When I try to use set-account --full-name I get the message that "The realm doesn't allow editting of names".
Then I tried to add jenkins as a user in LDAP but when I try to log in I see an exception being thrown that the user already exists.

Any idea how to resolve this? Or do I need to hack the database?

The fastest way is probably to do it in the database:
update accounts set full_name = '...' where account_id = ...


--
--
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.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Peter Bruin

unread,
Jul 7, 2013, 8:40:37 PM7/7/13
to repo-d...@googlegroups.com, Peter Bruin
I guess I created it as Gerrit role, I didn't know there was a difference in account types. And that's probably why gerrit tried to create a new after I added the user to LDAP.
This is what I used to create it.
cat id_pub.rsa | ssh - p 29418 gerrit.example.com gerrit create-account jenkins --ssh-key -

Anyway, I followed you advice and changed the database entry.

Thanks
Reply all
Reply to author
Forward
0 new messages