雖然我正在使用GitLab配置LDAP,但我已對/var/opt/gitlab/gitlab-rails/etc==>gitlab.yml
中的gitlab.yml文件進行了更改。但是在終端中運行「gitlab-ctl reconfigure」命令後,對「gitlab.yml」文件的更改沒有反映出來。在運行「gitlab-ctl reconfigure」命令後,gitlab.yml中所做的更改未反映
我到gitlab.yml
文件所做的更改是:
host: '172.16.3.25'
port: 389
uid: 'uid'
method: 'plain' # "tls" or "ssl" or "plain"
bind_dn: 'user'
password: 'user'allow_username_or_email_login: true
base: 'ou=people,dc=thbs,dc=com’
active_directory: false
看一下以'password'開頭的行,看起來你加入了2行,嘗試將它們分開並再次運行該命令,同時嘗試查看錯誤日誌(應該像' sudo gitlab-ctl tail') – Yaron
謝謝Yaron。 – sujitha
作爲正式答案添加,隨意投票並標記爲正確答案,謝謝:) – Yaron