summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Alt <michael.alt74@googlemail.com>2015-03-21 22:57:55 +0100
committerMichael Alt <michael.alt74@googlemail.com>2015-03-21 22:57:55 +0100
commit1502fed795979b19ca5366b688f07ffc22c79c99 (patch)
tree25b1a405bb06fd7907f140a878324b7f85a6c9b9
parent63da396f59be2ef8af091f10979934f085139771 (diff)
downloadgitlab-ce-1502fed795979b19ca5366b688f07ffc22c79c99.tar.gz
Faulty LDAP DN name escaping removed
The Net::LDAP::Filter.escape function can not be used to escape the DN name because the backslash is required to escape special chars in the DN name. This leads to the error message "Access denied for your LDAP account." and prevents the user from logging in to gitlab. Example DN: CN=Test\, User,OU=Organization,DC=Company CN=Test User,OU=Organization,DC=Company http://www.ietf.org/rfc/rfc4514.txt
-rw-r--r--lib/gitlab/ldap/person.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/gitlab/ldap/person.rb b/lib/gitlab/ldap/person.rb
index 3c426179375..b81f3e8e8f5 100644
--- a/lib/gitlab/ldap/person.rb
+++ b/lib/gitlab/ldap/person.rb
@@ -14,7 +14,6 @@ module Gitlab
end
def self.find_by_dn(dn, adapter)
- dn = Net::LDAP::Filter.escape(dn)
adapter.user('dn', dn)
end