Gerrit2 enable HTTP basic verification

Source: Internet
Author: User

Gerrit2's default openid authentication method is used all the time. As a result, one day cannot log on. After checking the log, it is found that the company's network UDP port 123 is not opened, so the Gerrit server Ubuntu time is not synchronized with the openid time provided by Google, and authentication fails.

Company it is in the United States. It may take a long time to wait for them to complete the process. It is decided to switch to the basic HTTP verification.

First install nginx and set basic HTTP verification. refer to the previous articleArticle.

Then refer to Gerrit document: http://gerrit-documentation.googlecode.com/svn/Documentation/2.4.2/config-sso.html#_http_basic_digest_authentication

Log on to the gerit server and run the three commands provided in the document.

Restart Gerrit service. Log on. A new user is automatically created, and my csfreebird@gmail.com.

In the Gerrit database, delete the records with ID 1000000 in the accounts and accounts_external_ids tables and set the newly added user ID to 1000000.

Restart Gerrit service, clear the browser cache, and then log on! Now the new user is the administrator.

It is hereby recorded.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.