I had tried. With the OpenId (default).
Unsuccessfully.
I had found that the problem is the Gerrit behind the proxy.
I had swithed to use Jetty's authentication (Gerrit = HTTP, Jetty =
Basic).
After few hours learning Jetty docs and experimenting with test.war I
have the following: jetty reports
Problem accessing /login/mine. Reason: !role.
My configuration is slightly changed from default:
gerrit.xml:
I had added
<Set name="overrideDescriptor"><SystemProperty name="jetty.home"
default="."/>/contexts/gerrit.d/override-web.xml</Set>
<Get name="securityHandler">
<Set name="loginService">
<New class="org.eclipse.jetty.security.HashLoginService">
<Set name="name">GerritCodeReview</Set>
<Set name="config"><SystemProperty name="jetty.home"
default="."/>/etc/gerrit.properties</Set>
</New>
</Set>
</Get>
gerrit.d/override-web.xml contains:
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app
xmlns="
http://java.sun.com/xml/ns/javaee"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://java.sun.com/xml/ns/javaee/web-
app_2_5.xsd"
version="2.5">
<security-constraint>
<web-resource-collection>
<web-resource-name>A Protected Page</web-resource-name>
<url-pattern>/login/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>*</role-name>
<!--
<role-name>tester</role-name>
<role-name>admin</role-name>
<role-name>user</role-name> -->
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>GerritCodeReview</realm-name>
</login-config>
</web-app>
gerrit.properties contains:
dsmirnov: mypass,admin
So, when I log in as dsmirnov, I see this error.
Meantime, if I uncomment any of the roles, I will get another error
(in logs):
java.lang.IllegalArgumentException: Attempt to use undeclared role:
tester, known roles: []
And the question is khow to fix this?
Dmitry
On Oct 29, 7:22 pm, Shawn Pearce <
s...@google.com> wrote:
> On Thu, Oct 29, 2009 at 07:27, Dmitry <
divis1...@gmail.com> wrote:
> > On some stage I need to register using the Web interface.
> > Unfortunately, this dialog is very small, I can see only header ("Code
> > Review - Register New Account) and cannot do registration.
> > Is to possible to fix this?
>
> Known bughttp://
code.google.com/p/gerrit/issues/detail?id=294