Search code examples
gerrit

How to change Gerrit LDAP administrator


I have one Gerrit server deployed. My Gerrit server was configured with one LDAP administrator user. Due to some cleanup activity that LDAP user was deleted by LDAP admin. And now I got the new LDAP user. I replaced the user configuration where the last user was configured in secure.config file. And then changed the user at Jenkins as well. And review are going on fine.

After I made the changes in secure.config file with the new user. I was in assumption that this user will become the next administrator of Gerrit. But I can see it is not. And using the old user I am not able to login. Now Hoe can I make the new user as Gerrit admin?

Changed the setting and reverted back, and login again with the new user but no luck.

[auth]
    type = development_become_any_account

Used Gerrit version: (2.11.8)


Solution

  • You need to add the new LDAP user to the "Administrators" group.

    See more details at the Gerrit documentation here.