How to setup admin user with gitlab with LDAP authentication?

后端 未结 5 1192
再見小時候
再見小時候 2021-02-12 11:14

I\'ve just setup gitlab, but I\'m completely lost with regards to admin user. The wiki seems silent about this topic, and google hasn\'t been of help either.

So, how do

5条回答
  •  我在风中等你
    2021-02-12 11:29

    This is what I did to make a LDAP (or Windows AD) user vikas as admin.

    First login on GitLab portal and logout, then run the below commands.

    gitlab-rails console production
    u = User.where(id: 1).first
    u.admin = true
    u.save!
    exit
    

    After running the above commands, login again and now your will have admin privileges for vikas AD user.

提交回复
热议问题