我有一个gerrit安装在我的服务器上,http作为身份validation方法,nginx作为服务器。 我已经创build了一个完美的pipe理员帐户。 我正在尝试用命令build立另一个帐户
ssh -p 29418 admin@host gerrit create-account --group "'someGroup'" --email [email protected] --http-password "'somePassword'" user
和一切看起来很好,但现在我无法login到这个帐户。 我可以在gerrit站点的nginx错误日志中find这个错误:
user "user" was not found in "/etc/nginx/.htpasswd"
我应该把这个新用户的密码放在什么地方吗?
这个命令创build一个Gerrit帐户,但是它与Nginx端的authentication无关,我的意思是Nginx不知道Gerrit中的帐号,所以它不会让你通过基本的authentication。
Gerrit中的HTTPauthentication意味着www-server处理authentication,Gerrit只需检查Authorization标头。
您应该为新用户添加一个条目到/etc/nginx/.htpasswd以使其工作。