How to setup admin user with gitlab with LDAP authentication?

后端 未结 5 1211
再見小時候
再見小時候 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:47

    You can also set admin permissions to a user by doing something like this in the rails console:

    User.find_by_email("user@example.org") do |i|
        i.admin = true
        i.save
    end
    

提交回复
热议问题