On Wednesday, August 15, 2012 at 07:51 EDT,
Zhihai Wang <
page...@gmail.com> wrote:
> After installing postgresql and gerrit successfully, I created the
> first gerrit user with "ldapadd -x -D cn=admin,dc=longcheer,dc=net -E
> -f shenjun.ldif"
> But when I login with this account, I found I'm not in the
> Administrator group.
Is this actually the account you're logging in as, i.e. is the account
id listed udner Settings -> Profile equal to 1000000?
> I logged into database and add this user into account_group_members
> and restart gerrit, now the user is in Administrator group, but don't
> have administrator permission, such as create new group, etc.
>
> From following, can see the user is successfully added into
> Administrator group, can anyone tell me why and how to address
> this issue?
> *gerrit> select * from account_group_members;*
> * account_id | group_id*
> * -----------+---------*
> * 1000000 | 1*
Unless this has changed recently, group membership changes are only
picked up when logging in. Hence, if you were logged in with that
account when you modified the database you need to sign out and login
again. You can verify in Settings -> Groups which groups Gerrit thinks
you are a member of.
--
Magnus Bäck
ba...@google.com