gitlab ldap认证 组织架构变动,引发的锁定用户(无法手动解锁)解决方案

/usr/bin/ansible unlock_gitlab -b -m shell -a "psql -h /var/opt/gitlab/postgresql -d gitlabhq_production -f /tmp/unlock_user.sql >>/tmp/unlock_user.txt && cat /tmp/unlock_user.txt"

unlock_user.sql
SELECT name,username,state FROM users WHERE state='ldap_blocked';
update users set state='active' where state='ldap_blocked';

你可能感兴趣的:(gitlab ldap认证 组织架构变动,引发的锁定用户(无法手动解锁)解决方案)