diff options
author | Kelvin <kelvin@gitlab.com> | 2016-07-27 15:13:03 +0300 |
---|---|---|
committer | Kelvin <kelvin@gitlab.com> | 2016-07-27 15:13:03 +0300 |
commit | 7941f971b5cb4d1c82d6d38b6460861088e62f63 (patch) | |
tree | 4850310e0a6ccbefd6a89cf562435d8ce56ab314 | |
parent | 0d2861f3c98dcbb2c76aa1184cc8ddaed5d2eabf (diff) | |
download | gitlab-ce-add-doc-on-ldap-troubleshooting.tar.gz |
Include ldap troubleshooting steps for blocked usersadd-doc-on-ldap-troubleshooting
-rw-r--r-- | doc/administration/auth/ldap.md | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/doc/administration/auth/ldap.md b/doc/administration/auth/ldap.md index 7186f707ad6..ece4c509491 100644 --- a/doc/administration/auth/ldap.md +++ b/doc/administration/auth/ldap.md @@ -275,3 +275,37 @@ If you are getting 'Connection Refused' errors when trying to connect to the LDAP server please double-check the LDAP `port` and `method` settings used by GitLab. Common combinations are `method: 'plain'` and `port: 389`, OR `method: 'ssl'` and `port: 636`. + +### Cannot Unblock LDAP blocked users error + +If users appear as blocked on GitLab while they are not blocked on the LDAP server, you can manually activate them by following the steps below: + +1. Run a rails console: + + ```sh + sudo gitlab-rails console production + ``` + + or for source installs: + + ```sh + bundle exec rails console production + ``` + +2. Create an array of all the blocked users by substituting the example email addresses below with the blocked users you wish to unblock + + ```ruby + irb(main):001:0> blocked_users = %w(me@example.com her@example.com him@example.com) + ``` + +3. Iterate over the blocked users as you unblock them + + ```ruby + irb(main):002:0> blocked_users.each{ |blocked_user| User.find_by(email: blocked_user).update!(state: "active") } + ``` + +4. Exit the console + + ```ruby + irb(main):003:0> exit + ``` |