BitNami GitLab Stack 5.1.0-2 with LDAP

强颜欢笑 提交于 2019-12-12 09:07:01

问题


I am configuring LDAP for BitNami GitLab Stack 5.1.0-2

I use following settings for /opt/bitnami/apps/gitlab/htdocs/config/gitlab.yml

  ## LDAP settings
  ldap:
    enabled: true
    host: '192.168.1.14'
    base: 'DC=company,DC=com'
    port: 389
    uid: 'sAMAccountName'
    method: "plain"
    bind_dn: 'gitlab-ldap@company.com'

Example at GitHub https://github.com/gitlabhq/gitlabhq/blob/master/config/gitlab.yml.example#L82-L91

After restart I see LDAP Sign in as default button, but I can't login.

Could not authorize you from Ldap because "Network is unreachable - connect(2)

Where to find GitLab log? How to solve this?

Previous attempt was Bitnami GitLab 5.0 and git & Eclipse EGit quick start

UPDATE. Server is virtual machine having static IP, and domain name gitlab.company.com. Gitlab is configured to use gitlab.funshion.com as IP name. See Bitnami FAQ

$ sudo /opt/bitnami/updateip --machine_hostname gitlab.funshion.com

Even so gitlab.company.com/gitlab is application URL.

UPDATE 2: logs are under /opt/bitnami/apps/gitlab/htdocs/log/ application.log - created project, etc, high level stuff
gitlabini.log - end with Administrator account created: ... NOTEMPTY
production.log - that is it! sidekiq.log

production.log

UPDATE 3: After restart I got

Could not authorize you from Ldap because “Server 192.168.133.100 refused connection on port 389”.

But 192.168.133.100 is actually my http://gitlab.company.com/ server

See BitNami GitLab Stack 5.1.0-2 rewrites gitlab.yml after reboot

UPDATE 4: The same problem with GitLab 5.4 I have found article "Gitlab Active Directory LDAP Authentication" https://raymii.org/s/tutorials/Gitlab_and_Active_Directory_LDAP_Authentication.html, but all attempts with word letter case did not succed.

来源:https://stackoverflow.com/questions/16413490/bitnami-gitlab-stack-5-1-0-2-with-ldap

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!