运行“gitlab-ctl reconfigure”命令

时间:2016-07-26 06:32:45

标签: gitlab

当我使用GitLab配置LDAP时,我在gitlab.yml文件中进行了更改,该文件位于/var/opt/gitlab/gitlab-rails/etc==>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

2 个答案:

答案 0 :(得分:0)

由于语法错误,似乎是错误配置。

尝试将其分开:

password: 'user'allow_username_or_email_login: true

对此:

password: 'user'
allow_username_or_email_login: true

答案 1 :(得分:0)

谢谢:)

问题得到了解决。

更改gitlab.yml文件中的配置:::

主持人:' 172.16.3.25'
港口:389
uid:' uid'
方法:' plain' #" tls"或者" ssl"或"普通"
bind_dn:'用户'
密码:'用户'
allow_username_or_email_login:true
base:' ou = people,dc = thbs,dc = com'
active_directory:false

我们必须重新启动gitlab。要重新启动,请使用以下命令:

sudo service gitlab restart

然后它会起作用。