gerrit password and web problem

836 views
Skip to first unread message

john

unread,
Apr 20, 2012, 2:12:33 AM4/20/12
to Repo and Gerrit Discussion
Why this is marked as abuse? It has been marked as abuse.
Report not abuse
Hello everyone:
Now I have two problems when using gerrit.

First gerrit password

How can a new user change his password for logining ? now the server
just can change user's passwords by Admin throw the way of"
sudo htpasswd /home/book/gerrt_sites/etc/passwords "user2"
"

I can click the button Generate Password on the web of settings--
>HTTP password ,but how to use it ? The new user just use the
password to login.

Second web show error

when the user login the web show the message of "not found" except
login at the first time(click other it works), and when sign out the
web also show "Configuration Error"


the following is my config file


gerrit.config


[gerrit]
basePath = git
canonicalWebUrl = http://192.168.22.221:8080/
[database]
type = MYSQL
hostname = localhost
database = reviewdb
username = git
[auth]
type = HTTP
[sendemail]
smtpServer = mail.xxx.com
smtpUser = ger...@xxx.com
[container]
user = book
javaHome = /usr/lib/jvm/java-6-sun-1.6.0.26/jre
[sshd]
listenAddress = *:29418
[httpd]
listenUrl = proxy-http://192.168.22.221:8080/
[cache]
directory = cache


apache2 config file


<VirtualHost *>
ServerName localhost
ProxyRequests Off
ProxyVia Off
ProxyPreserveHost On


<Proxy *>
Order deny,allow
Allow from all
</Proxy>


<Location /login/>
AuthType Basic
AuthName "Gerrit Code Review"
AuthBasicProvider file
AuthUserFile /home/book/gerrt_sites/etc/passwords
Require valid-user
</Location>


ProxyPass / http://192.168.22.221:8080/


</VirtualHost>


is that all right ? my gerrit version is 2.2.2.1



Thanks for your reply!




Luca Milanesio

unread,
Apr 20, 2012, 2:34:20 AM4/20/12
to john, Repo and Gerrit Discussion
Why this is marked as abuse? It has been marked as abuse.
Report not abuse
Hi John,

Gerrit doesn't manage users' password: as you are using HTTP Auth you need to setup a form yourself to manage the provisioning of passwords.

Second, the "generate HTTP Password" in Gerrit is to allow Git/HTTP operations (not the Gerrit WebUI password).

Kind Regards

---------
Sent from my iPhone
Luca Milanesio
Skype: lucamilanesio

> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en

Reply all
Reply to author
Forward
0 new messages