なんだか検証環境の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
へーそんなんでいいんかいな、と思ったりはしました。
以上。