I am 配置 https://github.com/gitlabhq/gitlabhq/blob/master/doc/install/installation.md#ldap-authenticationLDAP 用于BitNami GitLab 堆栈 http://bitnami.com/stack/gitlab/virtual-machine 5.1.0-2 http://bitnami.com/stack/gitlab/README.txt
我使用以下设置/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: '[email protected] /cdn-cgi/l/email-protection'
GitHub 上的示例https://github.com/gitlabhq/gitlabhq/blob/master/config/gitlab.yml.example#L82-L91 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.
无法从 Ldap 向您授权,因为“网络无法访问
- 连接(2)
哪里可以找到 GitLab 日志?怎么解决这个问题呢?
之前的尝试是
更新。服务器是具有静态IP和域名的虚拟机gitlab.company.com
。
Gitlab 配置为使用 gitlab.funshion.com 作为 IP 名称。看比特纳米常见问题解答 http://bitnami.com/faq/virtual_machines
$ sudo /opt/bitnami/updateip --machine_hostname gitlab.funshion.com
Even so gitlab.company.com/gitlab
是应用程序 URL。
更新2:
日志在下面/opt/bitnami/apps/gitlab/htdocs/log/
application.log - 创建的项目等,高级的东西
gitlabini.log - 以创建的管理员帐户结束:...
不是空的
Production.log - 就是这样!
sidekiq.log
production.log
更新3:重启后我得到了
无法从 Ldap 向您授权,因为“服务器 192.168.133.100
拒绝端口 389 上的连接”。
但192.168.133.100实际上是我的http://gitlab.company.com/
server
See BitNami GitLab Stack 5.1.0-2 重启后重写 gitlab.yml https://stackoverflow.com/questions/16539993/bitnami-gitlab-stack-5-1-0-2-rewrites-gitlab-yml-after-reboot
更新 4:GitLab 5.4 存在同样的问题
我找到了文章“Gitlab Active Directory LDAP 身份验证”https://raymii.org/s/tutorials/Gitlab_and_Active_Directory_LDAP_Authentication.html https://raymii.org/s/tutorials/Gitlab_and_Active_Directory_LDAP_Authentication.html,但所有使用单词字母大小写的尝试均未成功。