summaryrefslogtreecommitdiff
path: root/lib/gitlab/auth/ldap/access.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/auth/ldap/access.rb')
-rw-r--r--lib/gitlab/auth/ldap/access.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/auth/ldap/access.rb b/lib/gitlab/auth/ldap/access.rb
index 77c0ddc2d48..34286900e72 100644
--- a/lib/gitlab/auth/ldap/access.rb
+++ b/lib/gitlab/auth/ldap/access.rb
@@ -52,6 +52,8 @@ module Gitlab
block_user(user, 'does not exist anymore')
false
end
+ rescue LDAPConnectionError
+ false
end
def adapter