0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

gitlabのユーザのblockを解除

Posted at

なんだか検証環境のgitlabのユーザがブロックされてると報告があり対処したことの備忘録です。

Unblockボタンおすと、画面に以下のメッセージが出てました。

This user cannot be unlocked manually from GitLab

ちょっとこの文言で検索かつ最近のログを眺めるとかldap側の期限きれてないか確かめるって感じかなと思って調べたところ、、

https://gitlab.com/gitlab-org/gitlab-ce/issues/13179
こちら↑にあるとおり、users.stateをupdateしたら画面上もステータス変わりました。

# grep 'db' /etc/gitlab/gitlab.rb
# gitlab-psql gitlabhq_production -h gitlab-db-psql.hoge.local -U gitlab
gitlabhq_production=> \d
gitlabhq_production=> \d users;
gitlabhq_production=> select * from users where username='yama';
gitlabhq_production=> update users set state='active' where username='yama';
UPDATE 1
gitlabhq_production=> select * from users where username='yama';
gitlabhq_production=> \q

へーそんなんでいいんかいな、と思ったりはしました。

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?