Gitlab installation and LDAP integration centos6.x

Source: Internet
Author: User
Tags ldap

First, install Gitlab RPM package and dependencies
#curl-O https://downloads-packages.s3.amazonaws.com/centos-6.6/gitlab-7.5.3_omnibus.5.2.1.ci-1.el6.x86_64.rpm# Yum install-y openssh-server postfix cronie#chkconfig postfix on#rpm-i gitlab-7.5.3_omnibus.5.2.1.ci-1.el6.x86_64.rpm

One of the first steps to download the slow recommendation copy the address to download tool download and then upload to the server

Second, configure Gitlap and integrate LDAP

Modify the configuration file/etc/gitlab/gitlab.rb Modify the address below for you hostname or IP

Note you need to add =

External_url = ' gitlab.xxx.com '

Append LDAP configuration in /etc/gitlab/gitlab.rb (Detailed configuration parameter explanation see reference)

# for omnibus packagesgitlab_rails[' ldap_enabled '] = truegitlab_rails[' ldap_servers '] = yaml.load <<-eos #   Remember to close this block with ' EOS ' belowmain: # ' main ' was the GitLab ' provider ID ' of this LDAP server label: ' LDAP ' Host: ' Ldap_server_ip ' port:389 uid: ' uid ' method: ' Plain ' # ' TLS ' or ' SSL ' or ' plain ' allow_username_or_email_logi N:true bind_dn: ' cn=xxx,dc=xxx,dc=com ' Password: ' PASSWPRD ' active_directory:false base: ' ou=xxx,dc=xxx,dc=com ' use R_filter: "EOS

Make configuration effective

#gitlab-ctl Reconfigure

This Gitlab installs integrated LDAP completion


Third, commissioning and other

LDAP Login error Log location/var/log/gitlab/gitlab-rails/production.log

Gitlab service startup shutdown and restart

Gitlab-ctl Start|stop|restart

Note that you need to do this after you have modified/etc/gitlab/gitlab.rb

#gitlab-ctl Reconfigure

PS This command will execute chef add /etc/gitlab/gitlab.rb parameters added to /var/opt/gitlab/gitlab-rails/etc/gitlab.yml


Reference Document: Installation: https://about.gitlab.com/downloads/

LDAP configuration: http://doc.gitlab.com/ce/integration/ldap.html

Gitlab installation and LDAP integration centos6.x

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.