1. 程式人生 > >Gitlab & OpenLDAP settings

Gitlab & OpenLDAP settings

RT

Installation

Linking

  • For gitlab linking to ldap, please refer to official LDAP
    part settings in gitlab.rb file. very easy.

Troubles

  1. checking cmds: gitlab-rake gitlab:ldap:check
  2. Error: Your account has been blocked. Please contact your GitLab administrator if you think this is an error.

    Refer1: https://www.linuxidc.com/Linux/2018-01/150516.htm
    Refer2:
    I use this post:

    https://forum.gitlab.com/t/how-to-reset-the-admin-password-via-the-rails-console/223 and after: #13179 (closed)
    On a root user in terminal console:

gitlab-rails console
user = User.find_by(email: "myuser@example.com")
user.state = "active"
user.save
exit