Gitlab: Unblock an user blocked with state ldap_blocked
When an user blocked with state ldap_blocked
, we can’t unblock it from admin panel
Fix:
$ su - postgres
$ psql
postgres@gitlab:~$ psql
psql (12.6 (Ubuntu 12.6-1.pgdg18.04+1))
Type "help" for help.
postgres=# \c gitlabhq_production
gitlabhq_production=# select state from public.users where username='user1';
state
--------------
ldap_blocked
(1 row)
gitlabhq_production=# update public.users set state='active' where username='user1';
UPDATE 1
gitlabhq_production=# select state from public.users where username='user1';
state
--------------
active
(1 row)
Read other posts