RETIRED, Gerrit as used by OpenStack
Go to file
Hector Oswaldo Caballero d0bf015308 Allow HTTP password when using LDAP and basic authentication
So far, it was not possible to use HTTP password to validate git over
HTTP and REST API requests if LDAP was used along with HTTP basic
authentication. There is a use case, though, where users do not want to
use their LDAP password for the aforementioned requests as in, for
example, automation scripts.

Introduce a new configuration parameter, `gitBasicAuthPolicy`, to allow
LDAP users to authenticate using either the HTTP or the LDAP passwords
when doing git over HTTP and REST API requests. When this new parameter
is set to LDAP, the password in the request is checked against the LDAP
password only. When set to HTTP, the password is validated against the
randomly generated HTTP password. Finally, when set to HTTP_LDAP, the
password in the request is checked first against the HTTP password and,
if it does not match, it is checked against the LDAP password.

If the new parameter is not specified or if is set to LDAP, the current
behavior is preserved, i.e., only LDAP password is allowed when using
basic authentication.

Change-Id: I8846cd89dfdb98ab2fc36ba754d8302cf40527e9
2017-01-12 11:45:30 +00:00
.settings Enable and fix 'Statement unnecessarily nested within else clause' warnings 2016-06-02 10:20:37 +09:00
bucklets Buck: Fix typo in gerrit_plugin.bucklet 2015-12-23 17:55:11 +01:00
contrib Added a script to populate some dummy data 2016-05-20 17:31:47 +00:00
Documentation Allow HTTP password when using LDAP and basic authentication 2017-01-12 11:45:30 +00:00
gerrit-acceptance-framework Set version to 2.13.5 2017-01-06 09:47:10 +09:00
gerrit-acceptance-tests Fix eclipse unused variable warning 2017-01-10 09:56:39 +09:00
gerrit-antlr Implement Bazel build 2016-06-14 21:12:02 +02:00
gerrit-cache-h2 Merge "Add advanced H2 option handling" 2016-07-11 12:50:20 +00:00
gerrit-common Conditionally allow Gerrit to load in IFrame 2016-08-11 16:09:58 +00:00
gerrit-extension-api Allow HTTP password when using LDAP and basic authentication 2017-01-12 11:45:30 +00:00
gerrit-gpg PublicKeyStoreTest: Fix order of expected and actual results 2016-08-18 08:41:02 +02:00
gerrit-gwtdebug WebServer: Fix TIME_IN_THE_PAST constant definition 2016-05-07 22:11:43 +09:00
gerrit-gwtexpui Add IE 10 and 11 and also microsoft edge as supported browsers 2016-10-05 09:15:49 +00:00
gerrit-gwtui Don't truncate long lines in diff screens 2017-01-11 11:16:06 +09:00
gerrit-gwtui-common Allow HTTP password when using LDAP and basic authentication 2017-01-12 11:45:30 +00:00
gerrit-httpd Allow HTTP password when using LDAP and basic authentication 2017-01-12 11:45:30 +00:00
gerrit-launcher Gerrit command line utility to set/update secure.config 2017-01-12 00:25:25 +00:00
gerrit-lucene Drain executor of index change requests before closing index 2016-12-30 16:16:58 +00:00
gerrit-main Enable and fix 'Statement unnecessarily nested within else clause' warnings 2016-06-02 10:20:37 +09:00
gerrit-oauth OAuthTokenCache: Use account id as key 2016-10-18 23:37:24 +02:00
gerrit-openid Implement Bazel build 2016-06-14 21:12:02 +02:00
gerrit-patch-commonsnet Merge branch 'stable-2.12' 2016-08-18 09:09:43 -04:00
gerrit-patch-jgit Implement Bazel build 2016-06-14 21:12:02 +02:00
gerrit-pgm Gerrit command line utility to set/update secure.config 2017-01-12 00:25:25 +00:00
gerrit-plugin-api Set version to 2.13.5 2017-01-06 09:47:10 +09:00
gerrit-plugin-archetype Set version to 2.13.5 2017-01-06 09:47:10 +09:00
gerrit-plugin-gwt-archetype Set version to 2.13.5 2017-01-06 09:47:10 +09:00
gerrit-plugin-gwtui Set version to 2.13.5 2017-01-06 09:47:10 +09:00
gerrit-plugin-js-archetype Set version to 2.13.5 2017-01-06 09:47:10 +09:00
gerrit-prettify Implement Bazel build 2016-06-14 21:12:02 +02:00
gerrit-reviewdb RefNames: add constant for 'refs/meta/' 2016-11-28 09:17:06 +00:00
gerrit-server Allow HTTP password when using LDAP and basic authentication 2017-01-12 11:45:30 +00:00
gerrit-sshd Support move change via SSH 2016-11-23 12:50:27 +02:00
gerrit-util-cli Implement Bazel build 2016-06-14 21:12:02 +02:00
gerrit-util-http Implement Bazel build 2016-06-14 21:12:02 +02:00
gerrit-util-ssl Implement Bazel build 2016-06-14 21:12:02 +02:00
gerrit-war Set version to 2.13.5 2017-01-06 09:47:10 +09:00
lib Strip servlet API from GWT jar to avoid classpath collision 2016-11-09 22:38:00 +00:00
plugins Update git submodules 2016-12-12 06:43:45 +00:00
polygerrit-ui PolyGerrit: Fix link in README 2016-09-22 11:35:47 +03:00
ReleaseNotes Update 2.13.2 release notes 2016-10-03 11:36:15 +09:00
tools Allow to provide URLs for docs of external classes 2016-09-08 17:12:41 +09:00
website/releases Fix Diffy logo on release page by encoding the image 2015-12-29 10:36:39 -08:00
.bazelrc Implement Bazel build 2016-06-14 21:12:02 +02:00
.buckconfig Add bin folder to buck ignore 2016-09-21 10:51:47 +02:00
.buckversion Update Buck to e64a2e2ada022f81e42be750b774024469551398 2016-04-19 14:23:50 +00:00
.editorconfig Added continuation indent to editorconfig 2016-04-26 14:42:58 +02:00
.gitignore Git-ignore .primary_build_tool and .gwt_work_dir 2016-11-25 16:51:19 +01:00
.gitmodules Adapt .gitmodules to enable superproject subscriptions 2016-07-27 12:01:40 -07:00
.mailmap Update my email addess in mail map 2016-02-12 11:49:00 +01:00
.pydevproject Update PyDev project to use Python 2.7 2014-10-02 15:16:44 +09:00
.watchmanconfig Watchman: Add eclipse-out to ignored directories 2016-01-22 08:04:24 +01:00
BUCK Buck: Build gwtgerrit without touching PolyGerrit deps 2015-12-01 07:29:21 +00:00
COPYING Initial project setup of Gerrit 2 2008-11-14 16:59:34 -08:00
INSTALL Remove Gerrit 1.x to 2.x import tools 2009-03-27 20:20:10 -07:00
README.md Merge branch 'stable-2.12' 2016-06-27 11:08:44 +09:00
SUBMITTING_PATCHES Update push URL in SUBMITTING_PATCHES 2012-03-29 00:57:14 -04:00
VERSION Set version to 2.13.5 2017-01-06 09:47:10 +09:00
WORKSPACE Mirror recent third party updates in Bazel build. 2016-08-17 17:05:46 +02:00

Gerrit Code Review

Gerrit is a code review and project management tool for Git based projects.

Objective

Gerrit makes reviews easier by showing changes in a side-by-side display, and allowing inline comments to be added by any reviewer.

Gerrit simplifies Git based project maintainership by permitting any authorized user to submit changes to the master Git repository, rather than requiring all approved changes to be merged in by hand by the project maintainer.

Documentation

For information about how to install and use Gerrit, refer to the documentation.

Source

Our canonical Git repository is located on googlesource.com. There is a mirror of the repository on Github.

Reporting bugs

Please report bugs on the issue tracker.

Contribute

Gerrit is the work of hundreds of contributors. We appreciate your help!

Please read the contribution guidelines.

Note that we do not accept Pull Requests via the Github mirror.

Getting in contact

The IRC channel on freenode is #gerrit. An archive is available at: echelog.com.

The Developer Mailing list is repo-discuss on Google Groups.

License

Gerrit is provided under the Apache License 2.0.

Build

Install Buck and run the following:

    git clone --recursive https://gerrit.googlesource.com/gerrit
    cd gerrit && buck build release

Install binary packages (Deb/Rpm)

The instruction how to configure GerritForge/BinTray repositories is here

On Debian/Ubuntu run:

    apt-get update & apt-get install gerrit=<version>-<release>

NOTE: release is a counter that starts with 1 and indicates the number of packages that have been released with the same version of the software.

On CentOS/RedHat run:

    yum clean all && yum install gerrit-<version>[-<release>]

NOTE: release is optional. Last released package of the version is installed if the release number is omitted.