Sto provando a configurare Gerrit con l'autenticazione HTTP baisc, il mio httpd config èistituito Gerrit con l'autenticazione HTTP
<VirtualHost *:8081>
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 /usr/local/apache/passwd/passwords
Require valid-user
</Location>
ProxyPass/http://localhost:8081/
</VirtualHost>
e il mio gerrit.config è
[gerrit]
basePath = git
canonicalWebUrl = http://localhost:8081/
[database]
type = mysql
hostname = localhost
database = reviewdb
username = gerrit
[auth]
type = HTTP
[sendemail]
smtpServer = localhost
smtpUser = gerrit
[container]
user = gerrit
javaHome = /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
[sshd]
listenAddress = *:29418
[httpd]
listenUrl = proxy-http://*:8081/
[cache]
directory = cache
non sono sicuro dove mi i andando male, ma il accedendo http://x.x.x.x:8081 dice
The HTTP server did not provide the username in the Authorization header when it forwarded the request to Gerrit Code Review.
If the HTTP server is Apache HTTPd, check the proxy configuration includes an authorization directive with the proper location, ensuring it ends with '/':
mia Gerrit corre sulle coun molo inbuild Tainer e il mio sistema operativo è centos 6.4
dove sto andando storto?
Grazie alla configurazione ha funzionato per me il più a lungo il checkout va Tuttavia non sono ancora in grado di generare errori del tipo "Autenticazione fallita per ..." –
Se si passa a HTTP da OpenId, Gerrit non creerà il [account_external_ids] (https://review.openstack.org/Documentation /config-sso.html#_database_schema_2) automaticamente se il nome utente da HTTP corrisponde a quello che è stato utilizzato con OpenID. Visualizzerà un breve messaggio "Proibito" dopo l'autenticazione. Per risolvere questo problema, inserisci una riga che corrisponda al tuo utente nella tabella 'account_external_ids' con' external_id' uguale a 'gerrit: username'. – fracz