2

我正在为BitNami GitLab Stack 5.1.0-2配置LDAP

我使用以下设置/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'

GitHub 上的示例https://github.com/gitlabhq/gitlabhq/blob/master/config/gitlab.yml.example#L82-L91

重新启动后,我看到LDAP Sign in默认按钮,但我无法登录。

无法从 Ldap 授权您,因为“网络无法访问 - 连接 (2)

在哪里可以找到 GitLab 日志?如何解决这个问题?

之前的尝试是Bitnami GitLab 5.0 和 git & Eclipse EGit quick start

更新。服务器是具有静态 IP 和域名的虚拟机gitlab.company.com。Gitlab 配置为使用 gitlab.funshion.com 作为 IP 名称。请参阅Bitnami 常见问题解答

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

gitlab.company.com/gitlab应用程序 URL 也是如此。

更新 2:日志位于/opt/bitnami/apps/gitlab/htdocs/log/ application.log - 创建项目等,高级内容
gitlabini.log - 以创建管理员帐户结尾:... NOTEMPTY
production.log - 就是这样!sidekiq.log

生产日志 生产日志

更新3:重启后我得到了

无法从 Ldap 授权您,因为“服务器 192.168.133.100 拒绝连接端口 389”。

但是 192.168.133.100 实际上是我的http://gitlab.company.com/服务器

请参阅BitNami GitLab Stack 5.1.0-2 rewrites gitlab.yml after reboots

更新 4:与 GitLab 5.4 相同的问题我发现文章“Gitlab Active Directory LDAP 身份验证” https://raymii.org/s/tutorials/Gitlab_and_Active_Directory_LDAP_Authentication.html,但所有单词字母大小写的尝试都没有成功。

4

0 回答 0