gerrit/gerrit-httpd
Edwin Kempin c5eb00387b Allow service users to access REST API if auth.gitBasicAuth = true
If auth.gitBasicAuth is set to true in the gerrit.config file all HTTP
traffic is authenticated using standard BasicAuth and the credentials
are validated using the same auth method as configured for the Gerrit
Web UI. E.g. for LDAP this means that users must use their LDAP
password for Git over HTTP and for accessing the REST API.

Service users are technical users that were created by the
create-account SSH command. These users only exist in Gerrit and hence
they do not have any LDAP password. This is why at the moment service
users are not able to make use of the REST API if auth.gitBasicAuth is
set to true.

With this change users that exist only in Gerrit but not in LDAP are
authenticated with their HTTP password from the Gerrit database if
auth.gitBasicAuth is set to true.

Change-Id: I030c8810807ba678c148f7785a64cc5ff25308b8
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-04-17 17:49:34 -06:00
..
src Allow service users to access REST API if auth.gitBasicAuth = true 2014-04-17 17:49:34 -06:00
BUCK Switch to the xsiframe GWT linker 2014-03-07 18:14:09 +00:00